Skip to main content

Module state

Module state 

Source
Expand description

Reads events and short IDs from a historical room-state snapshot.

Strict streams preserve snapshot and reverse-mapping errors, and the listings of one typeโ€™s state keys with their IDs yield each failure beside the entries that resolved. The remaining collection streams are intentionally best effort and omit unresolved entries.

Re-exportsยง

use std::ops::Deref; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use futures::FutureExt; ๐Ÿ”’
use futures::Stream; ๐Ÿ”’
use futures::StreamExt; ๐Ÿ”’
use futures::TryFutureExt; ๐Ÿ”’
use futures::TryStreamExt; ๐Ÿ”’
use futures::future::try_join; ๐Ÿ”’
use futures::pin_mut; ๐Ÿ”’
use futures::stream::empty; ๐Ÿ”’
use ruma::OwnedEventId; ๐Ÿ”’
use ruma::UserId; ๐Ÿ”’
use ruma::events::StateEventType; ๐Ÿ”’
use ruma::events::room::history_visibility::HistoryVisibility; ๐Ÿ”’
use ruma::events::room::history_visibility::RoomHistoryVisibilityEventContent; ๐Ÿ”’
use ruma::events::room::member::MembershipState; ๐Ÿ”’
use ruma::events::room::member::RoomMemberEventContent; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use tuwunel_core::Error; ๐Ÿ”’
use tuwunel_core::Result; ๐Ÿ”’
use tuwunel_core::at; ๐Ÿ”’
use tuwunel_core::err; ๐Ÿ”’
use tuwunel_core::implement; ๐Ÿ”’
use tuwunel_core::pair_of; ๐Ÿ”’
use tuwunel_core::utils::result::FlatOk; ๐Ÿ”’
use tuwunel_core::utils::stream::BroadbandExt; ๐Ÿ”’
use tuwunel_core::utils::stream::IterStream; ๐Ÿ”’
use tuwunel_core::utils::stream::ReadyExt; ๐Ÿ”’
use tuwunel_core::utils::stream::TryBroadbandExt; ๐Ÿ”’
use tuwunel_core::utils::stream::TryIgnore; ๐Ÿ”’
use tuwunel_core::utils::stream::TryReadyExt; ๐Ÿ”’
use tuwunel_core::utils::stream::TryTools; ๐Ÿ”’
use tuwunel_matrix::Event; ๐Ÿ”’
use tuwunel_matrix::Pdu; ๐Ÿ”’
use tuwunel_matrix::StateKey; ๐Ÿ”’
use crate::rooms::short::ShortEventId; ๐Ÿ”’
use crate::rooms::short::ShortStateHash; ๐Ÿ”’
use crate::rooms::short::ShortStateKey; ๐Ÿ”’
use crate::rooms::state_compressor::CompressedState; ๐Ÿ”’
use crate::rooms::state_compressor::compress_state_event; ๐Ÿ”’
use crate::rooms::state_compressor::parse_compressed_state_event; ๐Ÿ”’

Type Aliasesยง

Listing ๐Ÿ”’