#[repr(u8)]pub enum PeerNetCmd {
Version = 0,
Verack = 1,
Protocol = 2,
Shutdown = 3,
}Expand description
Commands valid on the peer data-plane wire.
Variants§
Version = 0
Initial version-exchange message in the handshake.
Verack = 1
Acknowledgement for a Version message.
Protocol = 2
Wraps an application protocol payload (ProtocolMsg).
Shutdown = 3
Graceful close marker.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for PeerNetCmd
impl<'__de, __Context> BorrowDecode<'__de, __Context> for PeerNetCmd
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for PeerNetCmd
impl Clone for PeerNetCmd
Source§fn clone(&self) -> PeerNetCmd
fn clone(&self) -> PeerNetCmd
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 PeerNetCmd
impl Debug for PeerNetCmd
Source§impl<__Context> Decode<__Context> for PeerNetCmd
impl<__Context> Decode<__Context> for PeerNetCmd
Auto Trait Implementations§
impl Freeze for PeerNetCmd
impl RefUnwindSafe for PeerNetCmd
impl Send for PeerNetCmd
impl Sync for PeerNetCmd
impl Unpin for PeerNetCmd
impl UnsafeUnpin for PeerNetCmd
impl UnwindSafe for PeerNetCmd
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