Expand description
Types and code to map circuit IDs to circuits.
Re-exportsΒ§
use crate::circuit::CircuitRxSender;πuse crate::client::circuit::padding::PaddingController;πuse crate::client::circuit::padding::QueuedCellPaddingInfo;πuse crate::Error;πuse crate::Result;πuse tor_basic_utils::RngExt;πuse tor_cell::chancell::CircId;πuse tor_cell::chancell::msg::DestroyReason;πuse crate::circuit::celltypes::CreateResponse;πuse crate::client::circuit::halfcirc::HalfCirc;πuse oneshot_fused_workaround as oneshot;πuse rand::Rng;πuse rand::distr::Distribution;πuse std::collections::HashMap;πuse std::collections::hash_map::Entry;πuse std::ops::Deref;πuse std::ops::DerefMut;πuse std::result::Result as StdResult;πuse std::sync::Arc;πuse crate::relay::RelayCirc;π
StructsΒ§
- CircMap π
- A map from circuit IDs to circuit entries. Each channel has one.
- MutCirc
Ent π - An βsmart pointerβ that wraps an exclusive reference
of a
CircEnt.
EnumsΒ§
- CircEnt π
- An entry in the circuit map. Right now, we only have βhereβs the way to send cells to a given circuitβ, but thatβs likely to change.
- Circ
IdRange π - Which group of circuit IDs are we allowed to allocate in this map?