pub struct RawPacket {
pub data: PacketData,
/* private fields */
}
Fields§
§data: PacketData
Implementations§
Source§impl RawPacket
impl RawPacket
pub fn data_as_slice(&self) -> &[u8] ⓘ
pub fn packet_type(&self) -> u8
pub fn flags(&self) -> u8
pub fn is_publish(&self) -> bool
pub fn remaining_length(&self) -> u32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RawPacket
impl RefUnwindSafe for RawPacket
impl Send for RawPacket
impl Sync for RawPacket
impl Unpin for RawPacket
impl UnwindSafe for RawPacket
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