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 ๐