pub enum KeySet {
GlobalUnicast,
GlobalBroadcast,
Dedicated,
}Expand description
Which symmetric key set an association protects with.
One field rather than two flags: the three are alternatives, and “dedicated and broadcast at once” would name a key nothing holds.
Variants§
GlobalUnicast
The global unicast encryption key — ordinary traffic, and everything that runs before an association has a key of its own.
GlobalBroadcast
The global broadcast encryption key, shared across a fleet.
Dedicated
The key this association negotiated, delivered in the InitiateRequest.
Implementations§
Source§impl KeySet
impl KeySet
Sourcepub const fn is_broadcast(self) -> bool
pub const fn is_broadcast(self) -> bool
Whether the security control byte’s broadcast bit is set for this key set.
Sourcepub const fn is_dedicated(self) -> bool
pub const fn is_dedicated(self) -> bool
Whether this is the association’s own negotiated key.
Trait Implementations§
impl Copy for KeySet
impl Eq for KeySet
impl StructuralPartialEq for KeySet
Auto Trait Implementations§
impl Forget for KeySet
impl Freeze for KeySet
impl Move for KeySet
impl RefUnwindSafe for KeySet
impl Send for KeySet
impl Sync for KeySet
impl Unpin for KeySet
impl UnsafeUnpin for KeySet
impl UnwindSafe for KeySet
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