Expand description
Check-only reads of room state.
The live readers rebuild a roomβs state through typed decoders, an unchecked
slice and a cache of rebuilt chains, so a damaged row there panics, fails, or
hides behind a warm cache. Integrity checks resolve state through here
instead, from storage alone, where a damaged row is Mapped::Damaged.
Re-exportsΒ§
use std::collections::BTreeSet;πuse std::str::from_utf8;πuse futures::TryFutureExt;πuse futures::TryStreamExt;πuse futures::stream::unfold;πuse ruma::EventId;πuse ruma::OwnedEventId;πuse ruma::RoomId;πuse ruma::events::StateEventType;πuse tuwunel_core::Err;πuse tuwunel_core::Result;πuse tuwunel_core::implement;πuse tuwunel_core::result::NotFound;πuse tuwunel_core::utils::u64_from_bytes;πuse super::Service;πuse crate::integrity::short_ids::state::apply;πuse crate::integrity::short_ids::state::layer;πuse crate::integrity::short_ids::state::visit;πuse crate::rooms::short::ShortStateHash;πuse crate::rooms::state_compressor::CompressedState;πuse crate::rooms::state_compressor::compress_state_event;πuse crate::rooms::state_compressor::parse_compressed_state_event;πuse crate::rooms::timeline::Mapped;π
FunctionsΒ§
- event_
id π