Skip to main content

Module checked

Module checked 

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