Struct FixedHeader
pub struct FixedHeader {
pub packet_type: PacketType,
pub flags: u8,
pub remaining_length: u32,
}Expand description
Fixed header of an MQTT packet (first byte + remaining length).
Fields§
§packet_type: PacketTypeThe packet type.
flags: u8Type-specific flag bits (lower 4 bits of the first byte).
remaining_length: u32Number of bytes in the variable header + payload.
Trait Implementations§
§impl Clone for FixedHeader
impl Clone for FixedHeader
§fn clone(&self) -> FixedHeader
fn clone(&self) -> FixedHeader
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 more§impl Debug for FixedHeader
impl Debug for FixedHeader
§impl PartialEq for FixedHeader
impl PartialEq for FixedHeader
impl Copy for FixedHeader
impl Eq for FixedHeader
impl StructuralPartialEq for FixedHeader
Auto Trait Implementations§
impl Freeze for FixedHeader
impl RefUnwindSafe for FixedHeader
impl Send for FixedHeader
impl Sync for FixedHeader
impl Unpin for FixedHeader
impl UnwindSafe for FixedHeader
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