pub struct ChanCmd(_);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.
source§impl ChanCmd
impl ChanCmd
sourcepub fn is_var_cell(self) -> bool
pub fn is_var_cell(self) -> bool
Return true if this command is for a cell using the the variable-length format.
sourcepub fn accepts_circid_val(self, id: CircId) -> bool
pub fn accepts_circid_val(self, id: CircId) -> bool
Return true if this command is one that accepts the particular
circuit ID id.
Trait Implementations§
source§impl PartialEq<ChanCmd> for ChanCmd
impl PartialEq<ChanCmd> for ChanCmd
impl Copy for ChanCmd
impl Eq for ChanCmd
impl StructuralEq for ChanCmd
impl StructuralPartialEq for ChanCmd
Auto Trait Implementations§
impl RefUnwindSafe for ChanCmd
impl Send for ChanCmd
impl Sync for ChanCmd
impl Unpin for ChanCmd
impl UnwindSafe for ChanCmd
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.