pub struct AcmpFlags(pub u16);Expand description
ACMP flags (Table 8-4). The standard numbers bits from the most
significant, so its bit 15 is 0x0001.
Tuple Fields§
§0: u16Implementations§
Source§impl AcmpFlags
impl AcmpFlags
pub const CLASS_B: AcmpFlags
pub const FAST_CONNECT: AcmpFlags
pub const SAVED_STATE: AcmpFlags
pub const STREAMING_WAIT: AcmpFlags
pub const SUPPORTS_ENCRYPTED: AcmpFlags
pub const ENCRYPTED_PDU: AcmpFlags
pub const SRP_REGISTRATION_FAILED: AcmpFlags
pub const CL_ENTRIES_VALID: AcmpFlags
pub const NO_SRP: AcmpFlags
pub const UDP: AcmpFlags
pub const fn empty() -> Self
pub const fn bits(self) -> u16
pub const fn is_empty(self) -> bool
pub const fn union(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Sourcepub fn names(self) -> impl Iterator<Item = &'static str>
pub fn names(self) -> impl Iterator<Item = &'static str>
The standard’s names of the bits set, in bit order; bits it does not name are left out.
pub fn set(&mut self, other: Self, on: bool)
Source§impl AcmpFlags
impl AcmpFlags
Sourcepub const REGISTERING_FAILED: Self = Self::SRP_REGISTRATION_FAILED
pub const REGISTERING_FAILED: Self = Self::SRP_REGISTRATION_FAILED
Milan’s name for SRP_REGISTRATION_FAILED (Milan 1.3, Table 5.23).
Trait Implementations§
Source§impl BitOrAssign for AcmpFlags
impl BitOrAssign for AcmpFlags
Source§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
Performs the
|= operation. Read moreimpl Copy for AcmpFlags
impl Eq for AcmpFlags
impl StructuralPartialEq for AcmpFlags
Auto Trait Implementations§
impl Forget for AcmpFlags
impl Freeze for AcmpFlags
impl Move for AcmpFlags
impl RefUnwindSafe for AcmpFlags
impl Send for AcmpFlags
impl Sync for AcmpFlags
impl Unpin for AcmpFlags
impl UnsafeUnpin for AcmpFlags
impl UnwindSafe for AcmpFlags
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