Struct Frame
pub struct Frame {
header: FixedHeader,
header_len: usize,
total: usize,
}Expand description
A complete packet at the front of a PacketReader, as found by
PacketReader::peek.
It is not Copy, so PacketReader::consume can take it once.
Fields§
§header: FixedHeader§header_len: usize§total: usizeImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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