Skip to main content

Module circmap

Module circmap 

Source
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.
MutCircEnt πŸ”’
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.
CircIdRange πŸ”’
Which group of circuit IDs are we allowed to allocate in this map?