Skip to main content

Module lazy_loading

Module lazy_loading 

Source
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 ๐Ÿ”’

Type Aliasesยง

Key ๐Ÿ”’
Witness
Set of room members considered for lazy-loaded inclusion.