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.
- 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.
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(()).