Skip to main content

Module relatesto_typed

Module relatesto_typed 

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