Skip to main content

Module pdu_room_ids

Module pdu_room_ids 

Source
Expand description

The room_id of stored events.

Readers decode an event together with its room, so an event without one fails to read. A room version 12 create event imported from Conduit omits it, since its room derives from the event’s own id (MSC4291), whether it was stored in the timeline or as an outlier.

Re-exportsΒ§

use std::collections::BTreeMap; πŸ”’
use std::fmt; πŸ”’
use std::str::from_utf8; πŸ”’
use futures::Stream; πŸ”’
use futures::StreamExt; πŸ”’
use futures::TryStreamExt; πŸ”’
use futures::stream::once; πŸ”’
use ruma::CanonicalJsonObject; πŸ”’
use ruma::CanonicalJsonValue; πŸ”’
use ruma::EventId; πŸ”’
use ruma::OwnedRoomId; πŸ”’
use ruma::RoomId; πŸ”’
use serde::Deserialize; πŸ”’
use serde::Deserialize; πŸ”’
use serde::de::IgnoredAny; πŸ”’
use tuwunel_core::Result; πŸ”’
use tuwunel_core::utils::BoolExt; πŸ”’
use tuwunel_core::utils::TryReadyExt; πŸ”’
use tuwunel_database::KeyBuf; πŸ”’
use super::Check; πŸ”’
use super::Report; πŸ”’
use super::ScanExt; πŸ”’
use super::tally; πŸ”’
use crate::Services; πŸ”’
use crate::rooms::short::ShortRoomId; πŸ”’

StructsΒ§

Probe πŸ”’
The room_id of a stored event, read without the rest of it.

EnumsΒ§

Column
A column holding stored events.
Finding
A stored event without its room_id, or an outlier that cannot be read.

StaticsΒ§

CHECK πŸ”’

FunctionsΒ§

classify πŸ”’
Classifies one stored event as scan does.
outlier_room πŸ”’
The room of an outlier lacking its room_id.
outliers
Streams each outlier lacking its room_id or not JSON at all.
room πŸ”’
rooms πŸ”’
scan
Streams each stored event lacking its room_id, and each outlier that is not JSON.
short_id πŸ”’
timeline
Streams each timeline event lacking its room_id.
timeline_room πŸ”’

Type AliasesΒ§

Rooms πŸ”’