#[repr(u8)]pub enum NetMsgCmd {
Version = 0,
Verack = 1,
Protocol = 2,
Shutdown = 3,
Ping = 4,
Pong = 5,
FindPeer = 6,
Peer = 7,
Peers = 8,
}
Expand description
Defines message commands.
Variants§
Trait Implementations§
Source§impl<'__de> BorrowDecode<'__de> for NetMsgCmd
impl<'__de> BorrowDecode<'__de> for NetMsgCmd
Source§fn borrow_decode<__D: BorrowDecoder<'__de>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Auto Trait Implementations§
impl Freeze for NetMsgCmd
impl RefUnwindSafe for NetMsgCmd
impl Send for NetMsgCmd
impl Sync for NetMsgCmd
impl Unpin for NetMsgCmd
impl UnwindSafe for NetMsgCmd
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