Struct ppp_packet::EchoDiscardPacket
source · 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>
§type Error = ParseError
type Error = ParseError
source§fn parse_metadata(&self) -> ParseMetadata
fn parse_metadata(&self) -> ParseMetadata
Gets metadata about this packet required by [
GrowBuffer::undo_parse
]. Read moreAuto 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