Struct ppp_packet::ControlProtocolPacket
source · pub struct ControlProtocolPacket<B> { /* private fields */ }
Expand description
Wrapper around a parsed on-the-wire control protocol header and the rest of the packet.
Implementations§
source§impl<B: SplitByteSlice> ControlProtocolPacket<B>
impl<B: SplitByteSlice> ControlProtocolPacket<B>
Trait Implementations§
source§impl<B: SplitByteSlice> ParsablePacket<B, ()> for ControlProtocolPacket<B>
impl<B: SplitByteSlice> ParsablePacket<B, ()> for ControlProtocolPacket<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 ControlProtocolPacket<B>where
B: Freeze,
impl<B> RefUnwindSafe for ControlProtocolPacket<B>where
B: RefUnwindSafe,
impl<B> Send for ControlProtocolPacket<B>where
B: Send,
impl<B> Sync for ControlProtocolPacket<B>where
B: Sync,
impl<B> Unpin for ControlProtocolPacket<B>where
B: Unpin,
impl<B> UnwindSafe for ControlProtocolPacket<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