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)
Tuple Fields
0: BeginCreate a stream
Data(Data)
Tuple Fields
0: DataSend data on a stream
End(End)
Tuple Fields
0: EndClose a stream
Connected(Connected)
Tuple Fields
0: ConnectedSuccessful response to a Begin message
Sendme(Sendme)
Tuple Fields
0: SendmeFor flow control
Extend(Extend)
Tuple Fields
0: ExtendExtend a circuit to a new hop (deprecated)
Extended(Extended)
Tuple Fields
0: ExtendedSuccessful response to an Extend message (deprecated)
Extend2(Extend2)
Tuple Fields
0: Extend2Extend a circuit to a new hop
Extended2(Extended2)
Tuple Fields
0: Extended2Successful response to an Extend2 message
Truncate
Partially close a circuit
Truncated(Truncated)
Tuple Fields
0: TruncatedTell the client the a circuit has been partially closed
Drop
Used for padding
Resolve(Resolve)
Tuple Fields
0: ResolveLaunch a DNS request
Resolved(Resolved)
Tuple Fields
0: ResolvedResponse to a Resolve message
BeginDir
Start a directory stream
Unrecognized(Unrecognized)
Tuple Fields
0: UnrecognizedAn 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