Skip to main content

Module prev_walk

Module prev_walk 

Source

Re-exportsยง

use std::collections::BTreeMap; ๐Ÿ”’
use std::sync::Mutex; ๐Ÿ”’
use std::sync::MutexGuard; ๐Ÿ”’
use std::sync::atomic::AtomicU64; ๐Ÿ”’
use std::sync::atomic::Ordering; ๐Ÿ”’
use std::thread::panicking; ๐Ÿ”’
use std::time::Duration; ๐Ÿ”’
use std::time::Instant; ๐Ÿ”’
use ruma::OwnedEventId; ๐Ÿ”’
use ruma::OwnedRoomId; ๐Ÿ”’
use ruma::OwnedServerName; ๐Ÿ”’
use tuwunel_core::Error; ๐Ÿ”’
use tuwunel_core::Result; ๐Ÿ”’
use tuwunel_core::debug_info; ๐Ÿ”’
use tuwunel_core::implement; ๐Ÿ”’
use tuwunel_core::utils::MutexExt; ๐Ÿ”’
use tuwunel_core::utils::math::fetch_add_usize; ๐Ÿ”’
use tuwunel_core::warn; ๐Ÿ”’
pub use self::history::PrevWalkPass;
pub use self::history::PrevWalkRoom;
use super::Service; ๐Ÿ”’
use super::fetch_prev::PrevFetch; ๐Ÿ”’
use super::handle_prev_pdu::PrevUpgrade; ๐Ÿ”’

Modulesยง

history ๐Ÿ”’

Structsยง

InFlightWalk
A gapped incoming event whose pass is in flight.
InFlightWalks ๐Ÿ”’
Registry of the passes in flight, keyed by ids taken in registration order.
Pass ๐Ÿ”’
The end of one pass, computed once when its guard drops.
PrevWalk ๐Ÿ”’
Drop guard over one gapped incoming event, from its backoff lookup through the backward fetch and the upgrade of its previous events.
PrevWalkCounters ๐Ÿ”’
PrevWalkMetrics
Snapshot of process-lifetime totals for incoming previous-event walks.
Walk
The walking phase of a pass, entered when the backward fetch returns previous events.

Enumsยง

Outcome
How the pass of a gapped incoming event ended.

Functionsยง

log_fetch_end ๐Ÿ”’
log_walk_end ๐Ÿ”’

Type Aliasesยง

Walks ๐Ÿ”’