Expand description
The relation index relatesto_typed.
An edit or a reference is indexed under its parent, so a parentβs edits and
references are found without loading its other children. A row holds the
childβs short event id. The index derives from pduid_pdu, and its rebuild
clears it before writing it again.
Re-exportsΒ§
use std::fmt;πuse std::sync::Arc;πuse futures::Stream;πuse futures::StreamExt;πuse ruma::OwnedEventId;πuse tuwunel_core::Error;πuse tuwunel_core::Result;πuse tuwunel_core::result::NotFound;πuse tuwunel_core::utils::BoolExt;πuse tuwunel_core::utils::TryReadyExt;πuse tuwunel_core::utils::stream::TryBroadbandExt;πuse tuwunel_database::KeyBuf;πuse tuwunel_database::KeyVal;πuse tuwunel_database::Map;πuse tuwunel_matrix::Pdu;πuse tuwunel_matrix::PduId;πuse tuwunel_matrix::RawPduId;πuse super::Check;πuse super::Report;πuse super::ScanExt;πuse super::tally;πuse crate::Services;πuse crate::rooms::pdu_metadata::typed_relations::Derived;πuse crate::rooms::pdu_metadata::typed_relations::Key;πuse crate::rooms::pdu_metadata::typed_relations::key_child;π
StructsΒ§
- Row
- One row the index should hold.
EnumsΒ§
- Expected π
- What one event row gives the index.
- Finding
- A
relatesto_typedrow the timeline disagrees with, or an event it cannot read.
StaticsΒ§
- CHECK π
FunctionsΒ§
- derive π
- derives π
- expected π
- Streams the row each edit and reference gives the index.
- scan
- Streams each row the index lacks or should not hold, and each event that cannot be read.
- source π
- stale π
- Streams each index row no stored event derives, and each unparsable key.
- stored π
- verify π
Type AliasesΒ§
- Source π