Skip to main content

Module roomid_tscount_pducount

Module roomid_tscount_pducount 

Source
Expand description

The timestamp index roomid_tscount_pducount.

Each timeline event has one row keyed by its room, its timestamp and its biased count, holding the count, so a timestamp seeks to the events nearest it. The index derives from pduid_pdu, and its rebuild writes over it without clearing it first.

Re-exportsยง

use std::fmt; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use futures::Stream; ๐Ÿ”’
use ruma::MilliSecondsSinceUnixEpoch; ๐Ÿ”’
use ruma::OwnedRoomId; ๐Ÿ”’
use ruma::RoomId; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use tuwunel_core::Result; ๐Ÿ”’
use tuwunel_core::implement; ๐Ÿ”’
use tuwunel_core::result::NotFound; ๐Ÿ”’
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::RawPduId; ๐Ÿ”’
use super::Check; ๐Ÿ”’
use super::Report; ๐Ÿ”’
use super::ScanExt; ๐Ÿ”’
use super::tally; ๐Ÿ”’
use crate::Services; ๐Ÿ”’
use crate::rooms::timeline::bias_count; ๐Ÿ”’

Structsยง

PduRoomTs ๐Ÿ”’
Row
The row one timeline event gives the index.

Enumsยง

Expected ๐Ÿ”’
What one event row gives the index.
Finding
A timeline event whose timestamp index row is absent or wrong.

Staticsยง

CHECK ๐Ÿ”’

Functionsยง

derive ๐Ÿ”’
expected ๐Ÿ”’
Streams the row each timeline event gives the index.
scan
Streams each timeline event whose index row is absent or holds another count.
verify ๐Ÿ”’

Type Aliasesยง

Key ๐Ÿ”’