pub struct KadNetMsg {
pub header: KadNetMsgHeader,
pub payload: Vec<u8>,
}Expand description
Wire envelope for the kademlia lookup-plane (LookupService’s own short-lived TCP/TLS/QUIC connections).
Fields§
§header: KadNetMsgHeader§payload: Vec<u8>Implementations§
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for KadNetMsg
impl<'__de, __Context> BorrowDecode<'__de, __Context> for KadNetMsg
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 KadNetMsg
impl RefUnwindSafe for KadNetMsg
impl Send for KadNetMsg
impl Sync for KadNetMsg
impl Unpin for KadNetMsg
impl UnsafeUnpin for KadNetMsg
impl UnwindSafe for KadNetMsg
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