Expand description
Lazy-loaded room membership tracking.
The service records which member events lazy-loading-aware endpoints have sent to each user and device in a room. Callers use that history to omit redundant membership events or update the witness state.
Re-exportsยง
use std::collections::HashSet;๐use std::sync::Arc;๐use futures::Stream;๐use futures::StreamExt;๐use futures::pin_mut;๐use ruma::DeviceId;๐use ruma::OwnedUserId;๐use ruma::RoomId;๐use ruma::UserId;๐use ruma::api::client::filter::LazyLoadOptions;๐use tuwunel_core::Result;๐use tuwunel_core::implement;๐use tuwunel_core::utils::IterStream;๐use tuwunel_core::utils::ReadyExt;๐use tuwunel_core::utils::stream::TryIgnore;๐use tuwunel_database::Database;๐use tuwunel_database::Deserialized;๐use tuwunel_database::Handle;๐use tuwunel_database::Interfix;๐use tuwunel_database::Map;๐use tuwunel_database::Qry;๐
Structsยง
- Context
- Parameters that scope and control one lazy-loading operation.
- Data ๐
- Service
- Tracks room members previously sent through lazy-loading-aware endpoints.
Enumsยง
- Mode
- Selects how a lazy-loading lookup interacts with witness state.
- Status
- Describes whether a member has been witnessed in the selected scope.
Traitsยง
- Options
- Exposes the lazy-loading decisions needed by the service.
Functionsยง
- into_
status ๐ - make_
key ๐