#[repr(u8)]pub enum KadNetCmd {
Ping = 0,
Pong = 1,
FindPeer = 2,
Peer = 3,
Peers = 4,
Shutdown = 5,
}Expand description
Commands valid on the kademlia lookup-plane wire.
Variants§
Ping = 0
Lookup-level liveness check with version + nonce.
Pong = 1
Reply to Ping carrying the nonce.
FindPeer = 2
Request closest peers to a given peer id.
Peer = 3
Sender’s own PeerMsg (advertise self).
Peers = 4
List of PeerMsg returned in response to FindPeer.
Shutdown = 5
Graceful close marker.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for KadNetCmd
impl<'__de, __Context> BorrowDecode<'__de, __Context> for KadNetCmd
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.
Auto Trait Implementations§
impl Freeze for KadNetCmd
impl RefUnwindSafe for KadNetCmd
impl Send for KadNetCmd
impl Sync for KadNetCmd
impl Unpin for KadNetCmd
impl UnsafeUnpin for KadNetCmd
impl UnwindSafe for KadNetCmd
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