pub struct ProtocolId(/* private fields */);
Expand description
A general new type implementation of ProtocolName trait.
It is used to simplify the usage of ProtocolName. Furthermore, it provides more friendly Debug and Display, which can output a readable string instead of an array […]
Trait Implementations§
Source§impl AsRef<[u8]> for ProtocolId
impl AsRef<[u8]> for ProtocolId
Source§impl Clone for ProtocolId
impl Clone for ProtocolId
Source§fn clone(&self) -> ProtocolId
fn clone(&self) -> ProtocolId
Returns a duplicate 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 Display for ProtocolId
impl Display for ProtocolId
Source§impl From<&'static [u8]> for ProtocolId
impl From<&'static [u8]> for ProtocolId
Source§impl Hash for ProtocolId
impl Hash for ProtocolId
Source§impl PartialEq for ProtocolId
impl PartialEq for ProtocolId
Source§impl PartialOrd for ProtocolId
impl PartialOrd for ProtocolId
impl Eq for ProtocolId
impl StructuralPartialEq for ProtocolId
Auto Trait Implementations§
impl Freeze for ProtocolId
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