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 HasMemoryCostStructural for ChanCmd
impl HasMemoryCostStructural for ChanCmd
source§fn indirect_memory_cost(&self, et: EnabledToken) -> usize
fn indirect_memory_cost(&self, et: EnabledToken) -> usize
Memory cost of data stored out-of-line Read more
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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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.source§impl<T> HasMemoryCost for Twhere
T: HasMemoryCostStructural,
impl<T> HasMemoryCost for Twhere
T: HasMemoryCostStructural,
source§fn memory_cost(&self, et: EnabledToken) -> usize
fn memory_cost(&self, et: EnabledToken) -> usize
Returns the memory cost of
self
, in bytes Read moresource§impl<T> HasTypedMemoryCost<T> for Twhere
T: HasMemoryCost,
impl<T> HasTypedMemoryCost<T> for Twhere
T: HasMemoryCost,
source§fn typed_memory_cost(&self, enabled: EnabledToken) -> TypedMemoryCost<T>
fn typed_memory_cost(&self, enabled: EnabledToken) -> TypedMemoryCost<T>
The cost, as a
TypedMemoryCost<T>
rather than a raw usize
§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