Expand description
Implementation for parsing and encoding relay cells
Modules§
- conflux
conflux
- Encoding and decoding for relay messages related to conflux.
- extend
- Types and encodings used during circuit extension.
- extlist 🔒
- Helpers to manage lists of extensions within relay messages.
- hs
hs
- Encoding and decoding for relay messages related to onion services.
- msg
- Encoding and decoding for relay messages
- udp
experimental-udp
- Encoding and decoding for relay messages
Structs§
- Body
Wrapper 🔒 - Wrap a BoxedCellBody and implement AsMut<u8>, so we can use it with
SliceWriter
. - Incomplete
Relay MsgInfo - Information about a relay message for which we don’t yet have the complete body.
- Relay
Cell Decoder - Decodes a stream of relay cell bodies into
UnparsedRelayMsg
s. - Relay
Cell Decoder Result - Result of calling
RelayCellDecoder::decode
. - Relay
Cmd - A command that identifies the type of a relay cell
- Relay
MsgOuter - A decoded and parsed relay message, along with an optional Stream ID.
- Stream
Id - Identify a single stream on a circuit.
- Unparsed
Relay Msg - An enveloped relay message that has not yet been fully parsed, but where we have access to the command, stream ID, and payload data length for dispatching and congestion control purposes.
Enums§
- Relay
Cell 🔒Decoder Internal - Internal decoder state.
- Relay
Cell Format - Specifies which encoding version of RelayCell to use.
- Stream
IdReq 🔒 - Possible requirements on stream IDs for a relay command.
- Unparsed
Relay 🔒MsgInternal - Internal representation of an
UnparsedRelayMsg
.
Constants§
- LENGTH_
OFFSET_ 🔒V0 - Position of the payload data length within the V0 cell body.
- LENGTH_
OFFSET_ 🔒V1 - Position of the payload data length within the V1 cell body.
- STREAM_
ID_ 🔒OFFSET_ V0 - Position of the stream ID within the V0 cell body.
- STREAM_
ID_ 🔒OFFSET_ V1 - Position of the stream ID within the V1 cell body, if it is present.
Traits§
- Relay
Msg - Trait implemented by anything that can serve as a relay message.
Type Aliases§
- AnyRelay
Cell Deprecated - A deprecated name for AnyRelayMsgOuter.
- AnyRelay
MsgOuter - A decoded and parsed relay message of unrestricted type, with an accompanying optional Stream ID.
- Relay
Cell Deprecated - A deprecated name for RelayMsgOuter.