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Β§
- Shared
Result π - Represents the outcome shared by callers coalesced onto one fetch.
- Subscription π
- Carries a callerβs result channel and liveness token.