Skip to main content

Module data

Module data 

Source

Re-exportsยง

use std::collections::BTreeMap; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use futures::Stream; ๐Ÿ”’
use futures::TryStreamExt; ๐Ÿ”’
use futures::future::join; ๐Ÿ”’
use futures::future::try_join; ๐Ÿ”’
use ruma::CanonicalJsonObject; ๐Ÿ”’
use ruma::EventId; ๐Ÿ”’
use ruma::OwnedEventId; ๐Ÿ”’
use ruma::RoomId; ๐Ÿ”’
use ruma::UserId; ๐Ÿ”’
use ruma::events::AnySyncEphemeralRoomEvent; ๐Ÿ”’
use ruma::events::receipt::ReceiptEvent; ๐Ÿ”’
use ruma::serde::Raw; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use serde::de::IgnoredAny; ๐Ÿ”’
use tuwunel_core::Result; ๐Ÿ”’
use tuwunel_core::error; ๐Ÿ”’
use tuwunel_core::error; ๐Ÿ”’
use tuwunel_core::result::NotFound; ๐Ÿ”’
use tuwunel_core::smallvec::SmallVec; ๐Ÿ”’
use tuwunel_core::trace; ๐Ÿ”’
use tuwunel_core::utils::ReadyExt; ๐Ÿ”’
use tuwunel_core::utils::TryReadyExt; ๐Ÿ”’
use tuwunel_core::utils::stream::TryIgnore; ๐Ÿ”’
use tuwunel_database::Deserialized; ๐Ÿ”’
use tuwunel_database::Interfix; ๐Ÿ”’
use tuwunel_database::Json; ๐Ÿ”’
use tuwunel_database::KeyBuf; ๐Ÿ”’
use tuwunel_database::Map; ๐Ÿ”’
use tuwunel_database::Txn; ๐Ÿ”’
use tuwunel_database::serialize_key; ๐Ÿ”’
use tuwunel_matrix::pdu::PduCount; ๐Ÿ”’
use super::PrivateRead; ๐Ÿ”’
use super::ThreadKind; ๐Ÿ”’

Structsยง

Data ๐Ÿ”’
StoredContent ๐Ÿ”’
Minimal read-back of a stored receipt row.

Functionsยง

event_thread_kind ๐Ÿ”’
Tag string used in the storage key to discriminate receipts per thread. Empty for Unthreaded, "main" for Main, the event-id string for Thread(...) (event ids start with $, so the values are mutually exclusive). Custom variants reuse their string form; the C/S boundary rejects them, but federation receipts may still carry them through.
position_advances ๐Ÿ”’
Whether an incoming receipt position strictly advances the stored one.
private_read_row_stream ๐Ÿ”’
Per-thread marker rows under (room, user) in map.
stored_event_id ๐Ÿ”’
First event id named by a stored receipt row.

Type Aliasesยง

ReceiptItem ๐Ÿ”’
RowKv ๐Ÿ”’
Row shape shared by the active and mirrored private read maps.
Superseded ๐Ÿ”’
Receipt rows an accepted update replaces.