pub struct EchoDiscardPacket<B> { /* private fields */ }
Expand description
Wrapper around a parsed on-the-wire echo-discard packet header and the rest of the packet.
Implementations§
Source§impl<B: SplitByteSlice> EchoDiscardPacket<B>
impl<B: SplitByteSlice> EchoDiscardPacket<B>
Sourcepub fn magic_number(&self) -> u32
pub fn magic_number(&self) -> u32
Extract the magic number from the wire format.
Trait Implementations§
Source§impl<B: SplitByteSlice> ParsablePacket<B, ()> for EchoDiscardPacket<B>
impl<B: SplitByteSlice> ParsablePacket<B, ()> for EchoDiscardPacket<B>
Auto Trait Implementations§
impl<B> Freeze for EchoDiscardPacket<B>where
B: Freeze,
impl<B> RefUnwindSafe for EchoDiscardPacket<B>where
B: RefUnwindSafe,
impl<B> Send for EchoDiscardPacket<B>where
B: Send,
impl<B> Sync for EchoDiscardPacket<B>where
B: Sync,
impl<B> Unpin for EchoDiscardPacket<B>where
B: Unpin,
impl<B> UnwindSafe for EchoDiscardPacket<B>where
B: UnwindSafe,
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