Expand description
Persistent indexes derived from room membership state.
The service maintains paired user-to-room and room-to-user membership rows, aggregate counts, participating-server indexes, and cached stripped state. Read helpers expose point queries and cursor-backed streams over those derived indexes.
Re-exportsΒ§
use std::collections::HashMap;πuse std::convert::identity;πuse std::sync::Arc;πuse std::sync::RwLock;πuse futures::Stream;πuse futures::StreamExt;πuse futures::TryStreamExt;πuse futures::future::join5;πuse futures::future::ready;πuse futures::pin_mut;πuse futures::stream::empty;πuse futures::stream::select;πuse ruma::OwnedEventId;πuse ruma::OwnedRoomId;πuse ruma::OwnedServerName;πuse ruma::RoomId;πuse ruma::ServerName;πuse ruma::UserId;πuse ruma::events::AnyStrippedStateEvent;πuse ruma::events::AnySyncStateEvent;πuse ruma::events::room::member::MembershipState;πuse ruma::serde::Raw;πuse serde::de::DeserializeOwned;πuse tuwunel_core::Err;πuse tuwunel_core::Result;πuse tuwunel_core::at;πuse tuwunel_core::debug_warn;πuse tuwunel_core::err;πuse tuwunel_core::implement;πuse tuwunel_core::trace;πuse tuwunel_core::utils;πuse tuwunel_core::utils::BoolExt;πuse tuwunel_core::utils::result::NotFound;πuse tuwunel_core::utils::stream::BroadbandExt;πuse tuwunel_core::utils::stream::IterStream;πuse tuwunel_core::utils::stream::ReadyExt;πuse tuwunel_core::utils::stream::TryIgnore;πuse tuwunel_core::warn;πuse tuwunel_database::Deserialized;πuse tuwunel_database::Ignore;πuse tuwunel_database::IgnoreAll;πuse tuwunel_database::Interfix;πuse tuwunel_database::Map;πuse tuwunel_database::SEP;πuse tuwunel_database::deserialize_from_slice;πuse tuwunel_matrix::Event;πuse tuwunel_matrix::Pdu;πuse tuwunel_matrix::event::Owned;πuse update::EMPTY_INVITE_STATE;πpub use update::MembershipUpdate;pub use update::StrippedRoomState;use crate::appservice::RegistrationInfo;π
ModulesΒ§
- update π
- Membership-transition writes for the state cache.
- via π
- Routing-server hints derived from membership and invitation state.
StructsΒ§
ConstantsΒ§
- FORGOTTEN_
STATE π
FunctionsΒ§
- state_
events π - Normalizes either supported cached leave-state representation.
- without_
superseded_ πmembership - Drops all but the last of the userβs member events from a knock summary.
Type AliasesΒ§
- AppService
InRoom πCache - Stripped
State π - Stripped
State πEvent Item - Sync
State πEvent Item