Struct ckb_network::ProtocolId
source · pub struct ProtocolId(/* private fields */);
Expand description
Protocol id
Implementations§
source§impl ProtocolId
impl ProtocolId
Trait Implementations§
source§impl Clone for ProtocolId
impl Clone for ProtocolId
source§fn clone(&self) -> ProtocolId
fn clone(&self) -> ProtocolId
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ProtocolId
impl Debug for ProtocolId
source§impl Default for ProtocolId
impl Default for ProtocolId
source§fn default() -> ProtocolId
fn default() -> ProtocolId
Returns the “default value” for a type. Read more
source§impl Display for ProtocolId
impl Display for ProtocolId
source§impl From<ProtocolId> for TargetProtocol
impl From<ProtocolId> for TargetProtocol
source§fn from(id: ProtocolId) -> TargetProtocol
fn from(id: ProtocolId) -> TargetProtocol
Converts to this type from the input type.
source§impl From<usize> for ProtocolId
impl From<usize> for ProtocolId
source§fn from(id: usize) -> ProtocolId
fn from(id: usize) -> ProtocolId
Converts to this type from the input type.
source§impl Hash for ProtocolId
impl Hash for ProtocolId
source§impl Ord for ProtocolId
impl Ord for ProtocolId
source§fn cmp(&self, other: &ProtocolId) -> Ordering
fn cmp(&self, other: &ProtocolId) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ProtocolId
impl PartialEq for ProtocolId
source§fn eq(&self, other: &ProtocolId) -> bool
fn eq(&self, other: &ProtocolId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ProtocolId
impl PartialOrd for ProtocolId
source§fn partial_cmp(&self, other: &ProtocolId) -> Option<Ordering>
fn partial_cmp(&self, other: &ProtocolId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ProtocolId
impl Eq for ProtocolId
impl IsEnabled for ProtocolId
Auto Trait Implementations§
impl RefUnwindSafe for ProtocolId
impl Send for ProtocolId
impl Sync for ProtocolId
impl Unpin for ProtocolId
impl UnwindSafe for ProtocolId
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