pub struct RelayCmd(/* private fields */);
Expand description
A command that identifies the type of a relay cell
Implementations§
source§impl RelayCmd
impl RelayCmd
sourcepub const CONNECT_UDP: RelayCmd = _
pub const CONNECT_UDP: RelayCmd = _
NOTE: UDP command are reserved but only used with experimental-udp feature UDP: Start of a stream
sourcepub const CONNECTED_UDP: RelayCmd = _
pub const CONNECTED_UDP: RelayCmd = _
UDP: Acknowledge a CONNECT_UDP. Stream is open.
sourcepub const ESTABLISH_INTRO: RelayCmd = _
pub const ESTABLISH_INTRO: RelayCmd = _
HS: establish an introduction point.
sourcepub const ESTABLISH_RENDEZVOUS: RelayCmd = _
pub const ESTABLISH_RENDEZVOUS: RelayCmd = _
HS: establish a rendezvous point.
sourcepub const INTRODUCE1: RelayCmd = _
pub const INTRODUCE1: RelayCmd = _
HS: send introduction (client to introduction point)
sourcepub const INTRODUCE2: RelayCmd = _
pub const INTRODUCE2: RelayCmd = _
HS: send introduction (introduction point to service)
sourcepub const RENDEZVOUS1: RelayCmd = _
pub const RENDEZVOUS1: RelayCmd = _
HS: connect rendezvous point (service to rendezvous point)
sourcepub const RENDEZVOUS2: RelayCmd = _
pub const RENDEZVOUS2: RelayCmd = _
HS: connect rendezvous point (rendezvous point to client)
sourcepub const INTRO_ESTABLISHED: RelayCmd = _
pub const INTRO_ESTABLISHED: RelayCmd = _
HS: Response to ESTABLISH_INTRO
sourcepub const RENDEZVOUS_ESTABLISHED: RelayCmd = _
pub const RENDEZVOUS_ESTABLISHED: RelayCmd = _
HS: Response to ESTABLISH_RENDEZVOUS
sourcepub const INTRODUCE_ACK: RelayCmd = _
pub const INTRODUCE_ACK: RelayCmd = _
HS: Response to INTRODUCE1 from introduction point to client
sourcepub const PADDING_NEGOTIATE: RelayCmd = _
pub const PADDING_NEGOTIATE: RelayCmd = _
Padding: declare what kind of padding we want
sourcepub const PADDING_NEGOTIATED: RelayCmd = _
pub const PADDING_NEGOTIATED: RelayCmd = _
Padding: reply to a PADDING_NEGOTIATE
sourcepub fn is_recognized(self) -> bool
pub fn is_recognized(self) -> bool
Return true if this value is one that we recognize.
Trait Implementations§
impl Copy for RelayCmd
impl Eq for RelayCmd
impl StructuralPartialEq for RelayCmd
Auto Trait Implementations§
impl Freeze for RelayCmd
impl RefUnwindSafe for RelayCmd
impl Send for RelayCmd
impl Sync for RelayCmd
impl Unpin for RelayCmd
impl UnwindSafe for RelayCmd
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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