pub struct Flags(pub u8);Expand description
The flags byte (offset 6): bit0 BINARY · bits1-2 PRIORITY · bit3 LAST.
Tuple Fields§
§0: u8Implementations§
Source§impl Flags
impl Flags
Sourcepub fn new(binary: bool, priority: Priority, last: bool) -> Self
pub fn new(binary: bool, priority: Priority, last: bool) -> Self
Build flags from typed components.
Sourcepub fn priority(self) -> Option<Priority>
pub fn priority(self) -> Option<Priority>
Decode the priority bits, or None if they hold a reserved value.
Sourcepub fn has_reserved_bits(self) -> bool
pub fn has_reserved_bits(self) -> bool
True if any reserved bit (4-7) is set — a malformed/forward frame.
Trait Implementations§
impl Copy for Flags
impl Eq for Flags
impl StructuralPartialEq for Flags
Auto Trait Implementations§
impl Freeze for Flags
impl RefUnwindSafe for Flags
impl Send for Flags
impl Sync for Flags
impl Unpin for Flags
impl UnsafeUnpin for Flags
impl UnwindSafe for Flags
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