Skip to main content

Module state

Module state 

Source
Expand description

Code for implementing flow control (stream-level).

Re-exportsΒ§

use std::sync::Arc; πŸ”’
use postage::watch; πŸ”’
use tor_cell::relaycell::flow_ctrl::Xoff; πŸ”’
use tor_cell::relaycell::flow_ctrl::Xon; πŸ”’
use tor_cell::relaycell::flow_ctrl::XonKBpsEwma; πŸ”’
use tor_cell::relaycell::msg::AnyRelayMsg; πŸ”’
use tor_cell::relaycell::RelayMsg; πŸ”’
use tor_cell::relaycell::UnparsedRelayMsg; πŸ”’
use super::params::FlowCtrlParameters; πŸ”’
use super::window::state::HalfStreamWindowFlowCtrl; πŸ”’
use super::window::state::WindowFlowCtrl; πŸ”’
use super::xon_xoff::reader::DrainRateRequest; πŸ”’
use super::xon_xoff::state::HalfStreamXonXoffFlowCtrl; πŸ”’
use super::xon_xoff::state::XonXoffFlowCtrl; πŸ”’
use crate::Result; πŸ”’
use crate::congestion::sendme; πŸ”’
use crate::util::notify::NotifySender; πŸ”’

StructsΒ§

HalfStreamFlowCtrl πŸ”’
Manages flow control for a half-stream (HalfStream).
StreamFlowCtrl πŸ”’
Manages the circuit reactor’s flow control for a stream.
StreamRateLimit πŸ”’
A newtype wrapper for a tor stream rate limit that makes the units explicit.

EnumsΒ§

HalfStreamFlowCtrlInner πŸ”’
Private internals of HalfStreamFlowCtrl.
StreamFlowCtrlInner πŸ”’
Private internals of StreamFlowCtrl.
WithSidechannelMitigations πŸ”’
Whether sidechannel mitigations are enabled or not for flow control.

TraitsΒ§

FlowCtrlHooks πŸ”’
Methods that can be called on a StreamFlowCtrl.
HalfStreamFlowCtrlHooks πŸ”’
Methods that can be called on a HalfStreamFlowCtrl.