Expand description
Module exposing structures relating to a reactor’s view of a circuit hop.
Structs§
- Circ
HopInbound 🔒 - The inbound state of a hop.
- Circ
HopOutbound 🔒 - The outbound state of a hop.
- HopSettings 🔒
- The settings we use for single hop of a circuit.
- Reactor
Stream 🔒Components - A collection of components that can be used to interact with the reactor’s view of a Tor stream.
- Send
Relay 🔒Cell - Instructions for sending a RELAY cell.
Enums§
- HopNegotiation
Type 🔒 - Type of negotiation that we’ll be performing as we establish a hop.
Constants§
- CIRCUIT_
BUFFER_ 🔒SIZE - The size of the stream’s outbound RELAY message queue.
Functions§
- cvt 🔒
- Convert a limit from the form used in a HopSettings to that used here. (The format we use here is more compact.)
- try_
decrement_ 🔒cell_ limit - If
valisSome(1), return Err(()); otherwise decrement it (if it is Some) and return Ok(()).