pub struct ChanCmd(/* private fields */);
Expand description
A ChanCmd is the type of a channel cell. The value of the ChanCmd indicates the meaning of the cell, and (possibly) its length.
Implementations§
source§impl ChanCmd
impl ChanCmd
sourcepub const CREATE_FAST: ChanCmd = _
pub const CREATE_FAST: ChanCmd = _
Create a new circuit (no public-key)
sourcepub const CREATED_FAST: ChanCmd = _
pub const CREATED_FAST: ChanCmd = _
Finish a circuit-creation handshake (no public-key)
sourcepub const RELAY_EARLY: ChanCmd = _
pub const RELAY_EARLY: ChanCmd = _
Relay cell, transmitted over a circuit. Limited.
sourcepub const PADDING_NEGOTIATE: ChanCmd = _
pub const PADDING_NEGOTIATE: ChanCmd = _
Adjust channel-padding settings
sourcepub const CERTS: ChanCmd = _
pub const CERTS: ChanCmd = _
Provide additional certificates beyond those given in the TLS handshake
sourcepub const AUTH_CHALLENGE: ChanCmd = _
pub const AUTH_CHALLENGE: ChanCmd = _
Challenge material used in relay-to-relay handshake.
sourcepub const AUTHENTICATE: ChanCmd = _
pub const AUTHENTICATE: ChanCmd = _
Response material used in relay-to-relay handshake.
sourcepub fn is_recognized(self) -> bool
pub fn is_recognized(self) -> bool
Return true if this value is one that we recognize.
Trait Implementations§
source§impl PartialEq for ChanCmd
impl PartialEq for ChanCmd
impl Copy for ChanCmd
impl Eq for ChanCmd
impl StructuralPartialEq for ChanCmd
Auto Trait Implementations§
impl Freeze for ChanCmd
impl RefUnwindSafe for ChanCmd
impl Send for ChanCmd
impl Sync for ChanCmd
impl Unpin for ChanCmd
impl UnwindSafe for ChanCmd
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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>
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