Enum tor_cell::relaycell::msg::AnyRelayMsg
source · #[non_exhaustive]pub enum AnyRelayMsg {
Show 28 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),
EstablishIntro(EstablishIntro),
EstablishRendezvous(EstablishRendezvous),
Introduce1(Introduce1),
Introduce2(Introduce2),
Rendezvous1(Rendezvous1),
Rendezvous2(Rendezvous2),
IntroEstablished(IntroEstablished),
RendezvousEstablished(RendezvousEstablished),
IntroduceAck(IntroduceAck),
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
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)
experimental-udp
only.Start a UDP stream.
ConnectedUdp(ConnectedUdp)
experimental-udp
only.Successful response to a ConnectUdp message
Datagram(Datagram)
experimental-udp
only.UDP stream data
EstablishIntro(EstablishIntro)
hs
only.Establish Introduction
EstablishRendezvous(EstablishRendezvous)
hs
only.Establish Rendezvous
Introduce1(Introduce1)
hs
only.Introduce1 (client to introduction point)
Introduce2(Introduce2)
hs
only.Introduce2 (introduction point to service)
Rendezvous1(Rendezvous1)
hs
only.Rendezvous1 (service to rendezvous point)
Rendezvous2(Rendezvous2)
hs
only.Rendezvous2 (rendezvous point to client)
IntroEstablished(IntroEstablished)
hs
only.Acknowledgement for EstablishIntro.
RendezvousEstablished(RendezvousEstablished)
hs
only.Acknowledgment for EstablishRendezvous.
IntroduceAck(IntroduceAck)
hs
only.Acknowledgement for Introduce1.
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
source§impl From<BeginDir> for AnyRelayMsg
impl From<BeginDir> for AnyRelayMsg
source§fn from(m: BeginDir) -> AnyRelayMsg
fn from(m: BeginDir) -> AnyRelayMsg
source§impl From<ConnectUdp> for AnyRelayMsg
Available on crate feature experimental-udp
only.
impl From<ConnectUdp> for AnyRelayMsg
experimental-udp
only.source§fn from(m: ConnectUdp) -> AnyRelayMsg
fn from(m: ConnectUdp) -> AnyRelayMsg
source§impl From<Connected> for AnyRelayMsg
impl From<Connected> for AnyRelayMsg
source§fn from(m: Connected) -> AnyRelayMsg
fn from(m: Connected) -> AnyRelayMsg
source§impl From<ConnectedUdp> for AnyRelayMsg
Available on crate feature experimental-udp
only.
impl From<ConnectedUdp> for AnyRelayMsg
experimental-udp
only.source§fn from(m: ConnectedUdp) -> AnyRelayMsg
fn from(m: ConnectedUdp) -> AnyRelayMsg
source§impl From<Data> for AnyRelayMsg
impl From<Data> for AnyRelayMsg
source§fn from(m: Data) -> AnyRelayMsg
fn from(m: Data) -> AnyRelayMsg
source§impl From<Datagram> for AnyRelayMsg
Available on crate feature experimental-udp
only.
impl From<Datagram> for AnyRelayMsg
experimental-udp
only.source§fn from(m: Datagram) -> AnyRelayMsg
fn from(m: Datagram) -> AnyRelayMsg
source§impl From<Drop> for AnyRelayMsg
impl From<Drop> for AnyRelayMsg
source§fn from(m: Drop) -> AnyRelayMsg
fn from(m: Drop) -> AnyRelayMsg
source§impl From<End> for AnyRelayMsg
impl From<End> for AnyRelayMsg
source§fn from(m: End) -> AnyRelayMsg
fn from(m: End) -> AnyRelayMsg
source§impl From<EstablishIntro> for AnyRelayMsg
Available on crate feature hs
only.
impl From<EstablishIntro> for AnyRelayMsg
hs
only.source§fn from(m: EstablishIntro) -> AnyRelayMsg
fn from(m: EstablishIntro) -> AnyRelayMsg
source§impl From<EstablishRendezvous> for AnyRelayMsg
Available on crate feature hs
only.
impl From<EstablishRendezvous> for AnyRelayMsg
hs
only.source§fn from(m: EstablishRendezvous) -> AnyRelayMsg
fn from(m: EstablishRendezvous) -> AnyRelayMsg
source§impl From<Extend> for AnyRelayMsg
impl From<Extend> for AnyRelayMsg
source§fn from(m: Extend) -> AnyRelayMsg
fn from(m: Extend) -> AnyRelayMsg
source§impl From<Extend2> for AnyRelayMsg
impl From<Extend2> for AnyRelayMsg
source§fn from(m: Extend2) -> AnyRelayMsg
fn from(m: Extend2) -> AnyRelayMsg
source§impl From<Extended> for AnyRelayMsg
impl From<Extended> for AnyRelayMsg
source§fn from(m: Extended) -> AnyRelayMsg
fn from(m: Extended) -> AnyRelayMsg
source§impl From<Extended2> for AnyRelayMsg
impl From<Extended2> for AnyRelayMsg
source§fn from(m: Extended2) -> AnyRelayMsg
fn from(m: Extended2) -> AnyRelayMsg
source§impl From<IntroEstablished> for AnyRelayMsg
Available on crate feature hs
only.
impl From<IntroEstablished> for AnyRelayMsg
hs
only.source§fn from(m: IntroEstablished) -> AnyRelayMsg
fn from(m: IntroEstablished) -> AnyRelayMsg
source§impl From<Introduce1> for AnyRelayMsg
Available on crate feature hs
only.
impl From<Introduce1> for AnyRelayMsg
hs
only.source§fn from(m: Introduce1) -> AnyRelayMsg
fn from(m: Introduce1) -> AnyRelayMsg
source§impl From<Introduce2> for AnyRelayMsg
Available on crate feature hs
only.
impl From<Introduce2> for AnyRelayMsg
hs
only.source§fn from(m: Introduce2) -> AnyRelayMsg
fn from(m: Introduce2) -> AnyRelayMsg
source§impl From<IntroduceAck> for AnyRelayMsg
Available on crate feature hs
only.
impl From<IntroduceAck> for AnyRelayMsg
hs
only.source§fn from(m: IntroduceAck) -> AnyRelayMsg
fn from(m: IntroduceAck) -> AnyRelayMsg
source§impl From<Rendezvous1> for AnyRelayMsg
Available on crate feature hs
only.
impl From<Rendezvous1> for AnyRelayMsg
hs
only.source§fn from(m: Rendezvous1) -> AnyRelayMsg
fn from(m: Rendezvous1) -> AnyRelayMsg
source§impl From<Rendezvous2> for AnyRelayMsg
Available on crate feature hs
only.
impl From<Rendezvous2> for AnyRelayMsg
hs
only.source§fn from(m: Rendezvous2) -> AnyRelayMsg
fn from(m: Rendezvous2) -> AnyRelayMsg
source§impl From<RendezvousEstablished> for AnyRelayMsg
Available on crate feature hs
only.
impl From<RendezvousEstablished> for AnyRelayMsg
hs
only.source§fn from(m: RendezvousEstablished) -> AnyRelayMsg
fn from(m: RendezvousEstablished) -> AnyRelayMsg
source§impl From<Resolve> for AnyRelayMsg
impl From<Resolve> for AnyRelayMsg
source§fn from(m: Resolve) -> AnyRelayMsg
fn from(m: Resolve) -> AnyRelayMsg
source§impl From<Resolved> for AnyRelayMsg
impl From<Resolved> for AnyRelayMsg
source§fn from(m: Resolved) -> AnyRelayMsg
fn from(m: Resolved) -> AnyRelayMsg
source§impl From<Sendme> for AnyRelayMsg
impl From<Sendme> for AnyRelayMsg
source§fn from(m: Sendme) -> AnyRelayMsg
fn from(m: Sendme) -> AnyRelayMsg
source§impl From<Truncate> for AnyRelayMsg
impl From<Truncate> for AnyRelayMsg
source§fn from(m: Truncate) -> AnyRelayMsg
fn from(m: Truncate) -> AnyRelayMsg
source§impl From<Truncated> for AnyRelayMsg
impl From<Truncated> for AnyRelayMsg
source§fn from(m: Truncated) -> AnyRelayMsg
fn from(m: Truncated) -> AnyRelayMsg
source§impl From<Unrecognized> for AnyRelayMsg
impl From<Unrecognized> for AnyRelayMsg
source§fn from(u: Unrecognized) -> AnyRelayMsg
fn from(u: Unrecognized) -> AnyRelayMsg
source§impl RelayMsg for AnyRelayMsg
impl RelayMsg for AnyRelayMsg
source§fn encode_onto<W>(self, w: &mut W) -> EncodeResult<()>
fn encode_onto<W>(self, w: &mut W) -> EncodeResult<()>
source§impl TryFrom<AnyRelayMsg> for Begin
impl TryFrom<AnyRelayMsg> for Begin
source§impl TryFrom<AnyRelayMsg> for BeginDir
impl TryFrom<AnyRelayMsg> for BeginDir
source§impl TryFrom<AnyRelayMsg> for ConnectUdp
impl TryFrom<AnyRelayMsg> for ConnectUdp
source§fn try_from(msg: AnyRelayMsg) -> Result<ConnectUdp>
fn try_from(msg: AnyRelayMsg) -> Result<ConnectUdp>
source§impl TryFrom<AnyRelayMsg> for Connected
impl TryFrom<AnyRelayMsg> for Connected
source§impl TryFrom<AnyRelayMsg> for ConnectedUdp
impl TryFrom<AnyRelayMsg> for ConnectedUdp
source§fn try_from(msg: AnyRelayMsg) -> Result<ConnectedUdp>
fn try_from(msg: AnyRelayMsg) -> Result<ConnectedUdp>
source§impl TryFrom<AnyRelayMsg> for Data
impl TryFrom<AnyRelayMsg> for Data
source§impl TryFrom<AnyRelayMsg> for Datagram
impl TryFrom<AnyRelayMsg> for Datagram
source§impl TryFrom<AnyRelayMsg> for Drop
impl TryFrom<AnyRelayMsg> for Drop
source§impl TryFrom<AnyRelayMsg> for End
impl TryFrom<AnyRelayMsg> for End
source§impl TryFrom<AnyRelayMsg> for EstablishIntro
impl TryFrom<AnyRelayMsg> for EstablishIntro
source§fn try_from(msg: AnyRelayMsg) -> Result<EstablishIntro>
fn try_from(msg: AnyRelayMsg) -> Result<EstablishIntro>
source§impl TryFrom<AnyRelayMsg> for EstablishRendezvous
impl TryFrom<AnyRelayMsg> for EstablishRendezvous
source§fn try_from(msg: AnyRelayMsg) -> Result<EstablishRendezvous>
fn try_from(msg: AnyRelayMsg) -> Result<EstablishRendezvous>
source§impl TryFrom<AnyRelayMsg> for Extend
impl TryFrom<AnyRelayMsg> for Extend
source§impl TryFrom<AnyRelayMsg> for Extend2
impl TryFrom<AnyRelayMsg> for Extend2
source§impl TryFrom<AnyRelayMsg> for Extended
impl TryFrom<AnyRelayMsg> for Extended
source§impl TryFrom<AnyRelayMsg> for Extended2
impl TryFrom<AnyRelayMsg> for Extended2
source§impl TryFrom<AnyRelayMsg> for IntroEstablished
impl TryFrom<AnyRelayMsg> for IntroEstablished
source§fn try_from(msg: AnyRelayMsg) -> Result<IntroEstablished>
fn try_from(msg: AnyRelayMsg) -> Result<IntroEstablished>
source§impl TryFrom<AnyRelayMsg> for Introduce1
impl TryFrom<AnyRelayMsg> for Introduce1
source§fn try_from(msg: AnyRelayMsg) -> Result<Introduce1>
fn try_from(msg: AnyRelayMsg) -> Result<Introduce1>
source§impl TryFrom<AnyRelayMsg> for Introduce2
impl TryFrom<AnyRelayMsg> for Introduce2
source§fn try_from(msg: AnyRelayMsg) -> Result<Introduce2>
fn try_from(msg: AnyRelayMsg) -> Result<Introduce2>
source§impl TryFrom<AnyRelayMsg> for IntroduceAck
impl TryFrom<AnyRelayMsg> for IntroduceAck
source§fn try_from(msg: AnyRelayMsg) -> Result<IntroduceAck>
fn try_from(msg: AnyRelayMsg) -> Result<IntroduceAck>
source§impl TryFrom<AnyRelayMsg> for Rendezvous1
impl TryFrom<AnyRelayMsg> for Rendezvous1
source§fn try_from(msg: AnyRelayMsg) -> Result<Rendezvous1>
fn try_from(msg: AnyRelayMsg) -> Result<Rendezvous1>
source§impl TryFrom<AnyRelayMsg> for Rendezvous2
impl TryFrom<AnyRelayMsg> for Rendezvous2
source§fn try_from(msg: AnyRelayMsg) -> Result<Rendezvous2>
fn try_from(msg: AnyRelayMsg) -> Result<Rendezvous2>
source§impl TryFrom<AnyRelayMsg> for RendezvousEstablished
impl TryFrom<AnyRelayMsg> for RendezvousEstablished
source§fn try_from(msg: AnyRelayMsg) -> Result<RendezvousEstablished>
fn try_from(msg: AnyRelayMsg) -> Result<RendezvousEstablished>
source§impl TryFrom<AnyRelayMsg> for Resolve
impl TryFrom<AnyRelayMsg> for Resolve
source§impl TryFrom<AnyRelayMsg> for Resolved
impl TryFrom<AnyRelayMsg> for Resolved
source§impl TryFrom<AnyRelayMsg> for Sendme
impl TryFrom<AnyRelayMsg> for Sendme
source§impl TryFrom<AnyRelayMsg> for Truncate
impl TryFrom<AnyRelayMsg> for Truncate
Auto Trait Implementations§
impl Freeze for AnyRelayMsg
impl RefUnwindSafe for AnyRelayMsg
impl Send for AnyRelayMsg
impl Sync for AnyRelayMsg
impl Unpin for AnyRelayMsg
impl UnwindSafe for AnyRelayMsg
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more