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