Enum tor_cell::relaycell::msg::RelayMsg [−][src]
#[non_exhaustive]
pub enum RelayMsg {
}Expand description
A single parsed relay message, sent or received along a circuit
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Begin(Begin)Create a stream
Tuple Fields of Begin
0: BeginData(Data)Send data on a stream
Tuple Fields of Data
0: DataEnd(End)Close a stream
Tuple Fields of End
0: EndConnected(Connected)Successful response to a Begin message
Tuple Fields of Connected
0: ConnectedSendme(Sendme)For flow control
Tuple Fields of Sendme
0: SendmeExtend(Extend)Extend a circuit to a new hop (deprecated)
Tuple Fields of Extend
0: ExtendExtended(Extended)Successful response to an Extend message (deprecated)
Tuple Fields of Extended
0: ExtendedExtend2(Extend2)Extend a circuit to a new hop
Tuple Fields of Extend2
0: Extend2Extended2(Extended2)Successful response to an Extend2 message
Tuple Fields of Extended2
0: Extended2Partially close a circuit
Truncated(Truncated)Tell the client the a circuit has been partially closed
Tuple Fields of Truncated
0: TruncatedUsed for padding
Resolve(Resolve)Launch a DNS request
Tuple Fields of Resolve
0: ResolveResolved(Resolved)Response to a Resolve message
Tuple Fields of Resolved
0: ResolvedStart a directory stream
Unrecognized(Unrecognized)An unrecognized command.
Tuple Fields of Unrecognized
0: UnrecognizedImplementations
Extract the body of this message from r
Encode the body of this message, not including command or length
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RelayMsg
impl UnwindSafe for RelayMsg
Blanket Implementations
Mutably borrows from an owned value. Read more