Struct tor_cell::relaycell::msg::Sendme [−][src]
pub struct Sendme { /* fields omitted */ }
Expand description
A Sendme message is used to increase flow-control windows.
To avoid congestion, each Tor circuit and stream keeps track of a number of data cells that it is willing to send. It decrements these numbers every time it sends a cell. If these numbers reach zero, then no more cells can be sent on the stream or circuit.
The only way to re-increment these numbers is by receiving a Sendme cell from the other end of the circuit or stream.
For security, current circuit-level Sendme cells include an authentication tag that proves knowledge of the cells that they are acking.
See tor-spec.txt for more
information; also see the source for tor_proto::circuit::sendme
.
Implementations
Return a new empty sendme cell
This format is used on streams, and on circuits without sendme authentication.
Trait Implementations
Convert this type into a RelayMsg, wrapped appropriate.
Decode a relay cell body from a provided reader.
Encode the body of this cell into the end of a vec.
Auto Trait Implementations
impl RefUnwindSafe for Sendme
impl UnwindSafe for Sendme
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V