Skip to main content

Module circhop

Module circhop 

Source
Expand description

Module exposing structures relating to a reactor’s view of a circuit hop.

Structs§

CircHopInbound 🔒
The inbound state of a hop.
CircHopOutbound 🔒
The outbound state of a hop.
HopSettings 🔒
The settings we use for single hop of a circuit.
SendRelayCell 🔒
Instructions for sending a RELAY cell.

Enums§

HopNegotiationType 🔒
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 val is Some(1), return Err(()); otherwise decrement it (if it is Some) and return Ok(()).