pub struct InHeader<'a> { /* private fields */ }Implementations§
Source§impl<'a> InHeader<'a>
impl<'a> InHeader<'a>
pub fn new(direction: Direction, data: &'a [u8]) -> Self
pub fn direction(&self) -> Direction
pub fn data(&self) -> &'a [u8] ⓘ
pub fn mac(&self) -> &'a [u8; 8]
pub fn packet_id(&self) -> u16
pub fn client_id(&self) -> Option<u16>
pub fn flags(&self) -> Flags
pub fn packet_type(&self) -> PacketType
pub fn get_meta(&self) -> &'a [u8] ⓘ
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for InHeader<'a>
impl<'a> RefUnwindSafe for InHeader<'a>
impl<'a> Send for InHeader<'a>
impl<'a> Sync for InHeader<'a>
impl<'a> Unpin for InHeader<'a>
impl<'a> UnwindSafe for InHeader<'a>
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