Enum tor_cell::relaycell::msg::AnyRelayMsg
source · #[non_exhaustive]
pub enum AnyRelayMsg {
Show 19 variants
Begin(Begin),
Data(Data),
End(End),
Connected(Connected),
Sendme(Sendme),
Extend(Extend),
Extended(Extended),
Extend2(Extend2),
Extended2(Extended2),
Truncate(Truncate),
Truncated(Truncated),
Drop(Drop),
Resolve(Resolve),
Resolved(Resolved),
BeginDir(BeginDir),
ConnectUdp(ConnectUdp),
ConnectedUdp(ConnectedUdp),
Datagram(Datagram),
Unrecognized(Unrecognized),
}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
Truncate(Truncate)
Partially close a circuit
Truncated(Truncated)
Tell the client that a circuit has been partially closed
Drop(Drop)
Used for padding
Resolve(Resolve)
Launch a DNS request
Resolved(Resolved)
Response to a Resolve message
BeginDir(BeginDir)
Start a directory stream
ConnectUdp(ConnectUdp)
Available on crate feature
experimental-udp only.Start a UDP stream.
ConnectedUdp(ConnectedUdp)
Available on crate feature
experimental-udp only.Successful response to a ConnectUdp message
Datagram(Datagram)
Available on crate feature
experimental-udp only.UDP stream data
Unrecognized(Unrecognized)
An unrecognized command.
Trait Implementations§
source§impl Clone for AnyRelayMsg
impl Clone for AnyRelayMsg
source§fn clone(&self) -> AnyRelayMsg
fn clone(&self) -> AnyRelayMsg
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for AnyRelayMsg
impl Debug for AnyRelayMsg
source§impl From<Begin> for AnyRelayMsg
impl From<Begin> for AnyRelayMsg
source§fn from(m: Begin) -> AnyRelayMsg
fn from(m: Begin) -> AnyRelayMsg
Converts to this type from the input type.
source§impl From<BeginDir> for AnyRelayMsg
impl From<BeginDir> for AnyRelayMsg
source§fn from(m: BeginDir) -> AnyRelayMsg
fn from(m: BeginDir) -> AnyRelayMsg
Converts to this type from the input type.
source§impl From<ConnectUdp> for AnyRelayMsg
Available on crate feature experimental-udp only.
impl From<ConnectUdp> for AnyRelayMsg
Available on crate feature
experimental-udp only.source§fn from(m: ConnectUdp) -> AnyRelayMsg
fn from(m: ConnectUdp) -> AnyRelayMsg
Converts to this type from the input type.
source§impl From<Connected> for AnyRelayMsg
impl From<Connected> for AnyRelayMsg
source§fn from(m: Connected) -> AnyRelayMsg
fn from(m: Connected) -> AnyRelayMsg
Converts to this type from the input type.
source§impl From<ConnectedUdp> for AnyRelayMsg
Available on crate feature experimental-udp only.
impl From<ConnectedUdp> for AnyRelayMsg
Available on crate feature
experimental-udp only.source§fn from(m: ConnectedUdp) -> AnyRelayMsg
fn from(m: ConnectedUdp) -> AnyRelayMsg
Converts to this type from the input type.
source§impl From<Data> for AnyRelayMsg
impl From<Data> for AnyRelayMsg
source§fn from(m: Data) -> AnyRelayMsg
fn from(m: Data) -> AnyRelayMsg
Converts to this type from the input type.
source§impl From<Datagram> for AnyRelayMsg
Available on crate feature experimental-udp only.
impl From<Datagram> for AnyRelayMsg
Available on crate feature
experimental-udp only.source§fn from(m: Datagram) -> AnyRelayMsg
fn from(m: Datagram) -> AnyRelayMsg
Converts to this type from the input type.
source§impl From<Drop> for AnyRelayMsg
impl From<Drop> for AnyRelayMsg
source§fn from(m: Drop) -> AnyRelayMsg
fn from(m: Drop) -> AnyRelayMsg
Converts to this type from the input type.
source§impl From<End> for AnyRelayMsg
impl From<End> for AnyRelayMsg
source§fn from(m: End) -> AnyRelayMsg
fn from(m: End) -> AnyRelayMsg
Converts to this type from the input type.
source§impl From<Extend> for AnyRelayMsg
impl From<Extend> for AnyRelayMsg
source§fn from(m: Extend) -> AnyRelayMsg
fn from(m: Extend) -> AnyRelayMsg
Converts to this type from the input type.
source§impl From<Extend2> for AnyRelayMsg
impl From<Extend2> for AnyRelayMsg
source§fn from(m: Extend2) -> AnyRelayMsg
fn from(m: Extend2) -> AnyRelayMsg
Converts to this type from the input type.
source§impl From<Extended> for AnyRelayMsg
impl From<Extended> for AnyRelayMsg
source§fn from(m: Extended) -> AnyRelayMsg
fn from(m: Extended) -> AnyRelayMsg
Converts to this type from the input type.
source§impl From<Extended2> for AnyRelayMsg
impl From<Extended2> for AnyRelayMsg
source§fn from(m: Extended2) -> AnyRelayMsg
fn from(m: Extended2) -> AnyRelayMsg
Converts to this type from the input type.
source§impl From<Resolve> for AnyRelayMsg
impl From<Resolve> for AnyRelayMsg
source§fn from(m: Resolve) -> AnyRelayMsg
fn from(m: Resolve) -> AnyRelayMsg
Converts to this type from the input type.
source§impl From<Resolved> for AnyRelayMsg
impl From<Resolved> for AnyRelayMsg
source§fn from(m: Resolved) -> AnyRelayMsg
fn from(m: Resolved) -> AnyRelayMsg
Converts to this type from the input type.
source§impl From<Sendme> for AnyRelayMsg
impl From<Sendme> for AnyRelayMsg
source§fn from(m: Sendme) -> AnyRelayMsg
fn from(m: Sendme) -> AnyRelayMsg
Converts to this type from the input type.
source§impl From<Truncate> for AnyRelayMsg
impl From<Truncate> for AnyRelayMsg
source§fn from(m: Truncate) -> AnyRelayMsg
fn from(m: Truncate) -> AnyRelayMsg
Converts to this type from the input type.
source§impl From<Truncated> for AnyRelayMsg
impl From<Truncated> for AnyRelayMsg
source§fn from(m: Truncated) -> AnyRelayMsg
fn from(m: Truncated) -> AnyRelayMsg
Converts to this type from the input type.
source§impl From<Unrecognized> for AnyRelayMsg
impl From<Unrecognized> for AnyRelayMsg
source§fn from(u: Unrecognized) -> AnyRelayMsg
fn from(u: Unrecognized) -> AnyRelayMsg
Converts to this type from the input type.
source§impl RelayMsg for AnyRelayMsg
impl RelayMsg for AnyRelayMsg
source§fn encode_onto<W>(self, w: &mut W) -> EncodeResult<()>where
W: Writer + ?Sized,
fn encode_onto<W>(self, w: &mut W) -> EncodeResult<()>where W: Writer + ?Sized,
Encode the body of this message, not including command or length