pub struct OriginalPacket<B>(/* private fields */);
Expand description
A thin wrapper around B which implements MessageBody
.
Implementations§
Trait Implementations§
Source§impl<B: Debug> Debug for OriginalPacket<B>
impl<B: Debug> Debug for OriginalPacket<B>
Source§impl<B: SplitByteSlice> MessageBody for OriginalPacket<B>
impl<B: SplitByteSlice> MessageBody for OriginalPacket<B>
Source§fn parse(bytes: B) -> ParseResult<OriginalPacket<B>>
fn parse(bytes: B) -> ParseResult<OriginalPacket<B>>
Parse the MessageBody from the provided bytes.
Auto Trait Implementations§
impl<B> Freeze for OriginalPacket<B>where
B: Freeze,
impl<B> RefUnwindSafe for OriginalPacket<B>where
B: RefUnwindSafe,
impl<B> Send for OriginalPacket<B>where
B: Send,
impl<B> Sync for OriginalPacket<B>where
B: Sync,
impl<B> Unpin for OriginalPacket<B>where
B: Unpin,
impl<B> UnwindSafe for OriginalPacket<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