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
sourceimpl ChanCmd
impl ChanCmd
sourcepub const CREATE_FAST: ChanCmd = ChanCmd(5)
pub const CREATE_FAST: ChanCmd = ChanCmd(5)
Create a new circuit (no public-key)
sourcepub const CREATED_FAST: ChanCmd = ChanCmd(6)
pub const CREATED_FAST: ChanCmd = ChanCmd(6)
Finish a circuit-creation handshake (no public-key)
sourcepub const NETINFO: ChanCmd = ChanCmd(8)
pub const NETINFO: ChanCmd = ChanCmd(8)
Finish a channel handshake with time and address information
sourcepub const RELAY_EARLY: ChanCmd = ChanCmd(9)
pub const RELAY_EARLY: ChanCmd = ChanCmd(9)
Relay cell, transmitted over a circuit. Limited.
sourcepub const PADDING_NEGOTIATE: ChanCmd = ChanCmd(12)
pub const PADDING_NEGOTIATE: ChanCmd = ChanCmd(12)
Adjust channel-padding settings
sourcepub const VERSIONS: ChanCmd = ChanCmd(7)
pub const VERSIONS: ChanCmd = ChanCmd(7)
Variable-length cell, despite its number: negotiate versions
sourcepub const CERTS: ChanCmd = ChanCmd(129)
pub const CERTS: ChanCmd = ChanCmd(129)
Provide additional certificates beyond those given in the TLS handshake
sourcepub const AUTH_CHALLENGE: ChanCmd = ChanCmd(130)
pub const AUTH_CHALLENGE: ChanCmd = ChanCmd(130)
Challenge material used in relay-to-relay handshake.
sourcepub const AUTHENTICATE: ChanCmd = ChanCmd(131)
pub const AUTHENTICATE: ChanCmd = ChanCmd(131)
Response material used in relay-to-relay handshake.
sourcepub const AUTHORIZE: ChanCmd = ChanCmd(132)
pub const AUTHORIZE: ChanCmd = ChanCmd(132)
Indicates client permission to use relay. Not currently used.
sourcepub fn is_recognized(self) -> bool
pub fn is_recognized(self) -> bool
Return true if this value is one that we recognize.
sourceimpl 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
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more