Skip to main content

pack_receipts_fallible

Function pack_receipts_fallible 

Source
pub fn pack_receipts_fallible<I>(
    receipts: I,
) -> Result<Raw<SyncEphemeralRoomEvent<ReceiptEventContent>>>
where I: Iterator<Item = Raw<AnySyncEphemeralRoomEvent>>,
Expand description

Packs read receipts into one sync event without suppressing malformed input.

Every input must deserialize as a receipt event. The caller receives any parse or serialization failure and can retain the bounded room cursor instead of publishing a partial event.