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
Data(Data)
Send data on a stream
End(End)
Close a stream
Connected(Connected)
Successful response to a Begin message
Sendme(Sendme)
For flow control
Extend(Extend)
Extend a circuit to a new hop (deprecated)
Extended(Extended)
Successful response to an Extend message (deprecated)
Extend2(Extend2)
Extend a circuit to a new hop
Extended2(Extended2)
Successful response to an Extend2 message
Partially close a circuit
Truncated(Truncated)
Tell the client the a circuit has been partially closed
Used for padding
Resolve(Resolve)
Launch a DNS request
Resolved(Resolved)
Response to a Resolve message
Start a directory stream
Unrecognized(Unrecognized)
An unrecognized command.
Implementations
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
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V