pub struct PacketHeaderPacked { /* private fields */ }Implementations§
Source§impl PacketHeaderPacked
impl PacketHeaderPacked
pub fn unpack_warn<W: Warn<Warning>>(self, warn: &mut W) -> PacketHeader
pub fn unpack(self) -> PacketHeader
Trait Implementations§
Source§impl AsBytes for PacketHeaderPacked
impl AsBytes for PacketHeaderPacked
Source§impl Clone for PacketHeaderPacked
impl Clone for PacketHeaderPacked
Source§fn clone(&self) -> PacketHeaderPacked
fn clone(&self) -> PacketHeaderPacked
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl FromBytes for PacketHeaderPacked
impl FromBytes for PacketHeaderPacked
Source§fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>
fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>
Source§fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>
fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>
Source§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
Interprets the prefix of the given
bytes as a &[Self] with length
equal to count without copying. Read moreSource§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
Interprets the suffix of the given
bytes as a &[Self] with length
equal to count without copying. Read moreSource§fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>
fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>
Source§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [Self], &mut [u8])>
fn mut_slice_from_prefix( bytes: &mut [u8], count: usize, ) -> Option<(&mut [Self], &mut [u8])>
Interprets the prefix of the given
bytes as a &mut [Self] with length
equal to count without copying. Read moreSource§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [u8], &mut [Self])>
fn mut_slice_from_suffix( bytes: &mut [u8], count: usize, ) -> Option<(&mut [u8], &mut [Self])>
Interprets the suffix of the given
bytes as a &mut [Self] with length
equal to count without copying. Read moreSource§impl FromZeroes for PacketHeaderPackedwhere
u8: FromZeroes,
impl FromZeroes for PacketHeaderPackedwhere
u8: FromZeroes,
impl Copy for PacketHeaderPacked
Auto Trait Implementations§
impl Freeze for PacketHeaderPacked
impl RefUnwindSafe for PacketHeaderPacked
impl Send for PacketHeaderPacked
impl Sync for PacketHeaderPacked
impl Unpin for PacketHeaderPacked
impl UnsafeUnpin for PacketHeaderPacked
impl UnwindSafe for PacketHeaderPacked
Blanket Implementations§
Source§impl<T> AsBytesExt for T
impl<T> AsBytesExt for T
fn as_byte_array(&self) -> &Self::ByteArray
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