Skip to main content

Module inflight

Module inflight 

Source
Expand description

Single-flight bookkeeping for one in-flight fetch.

Key is the dedup key the worker’s in-flight map is keyed on; Inflight is the worker-owned entry every coalesced caller subscribes to; SharedResult is the broadcast outcome and Subscription the caller’s handle, whose liveness token cancels the fetch on drop.

Re-exportsΒ§

use std::collections::hash_map::DefaultHasher; πŸ”’
use std::hash::Hash; πŸ”’
use std::hash::Hash; πŸ”’
use std::hash::Hasher; πŸ”’
use std::num::NonZeroUsize; πŸ”’
use std::sync::Arc; πŸ”’
use std::sync::Weak; πŸ”’
use ruma::MilliSecondsSinceUnixEpoch; πŸ”’
use ruma::OwnedEventId; πŸ”’
use ruma::OwnedRoomId; πŸ”’
use ruma::OwnedServerName; πŸ”’
use ruma::RoomVersionId; πŸ”’
use ruma::api::Direction; πŸ”’
use tokio::sync::watch::Receiver; πŸ”’
use tokio::sync::watch::Sender; πŸ”’
use tuwunel_core::implement; πŸ”’
use super::Failure; πŸ”’
use super::FanoutGrowth; πŸ”’
use super::Op; πŸ”’
use super::Opts; πŸ”’
use super::Outcome; πŸ”’

StructsΒ§

Identity πŸ”’
Inflight πŸ”’
Holds one worker-owned fetch and its subscribers.
Key πŸ”’
Single-flight dedup key for a request and its complete caller policy.

FunctionsΒ§

fingerprint πŸ”’
identity πŸ”’

Type AliasesΒ§

SharedResult πŸ”’
Represents the outcome shared by callers coalesced onto one fetch.
Subscription πŸ”’
Carries a caller’s result channel and liveness token.