pub enum CounterKind {
SecureUnicast,
Rollover,
}Expand description
Which duplicate-detection rule applies to a counter space (§4.6.5.2).
Variants§
SecureUnicast
A secure unicast session, whose counter does not roll over (§4.6.5.2.1).
“any arriving message with a counter in the range [(max_message_counter + 1) to (2³² - 1)] SHALL be considered new”.
Rollover
A group session, or an unencrypted peer — a free-running counter that rolls over (§4.6.5.2.2).
“any arriving message with a counter in the range [(max_message_counter + 1) to (max_message_counter + 2³¹ - 1)] (modulo 2³²) SHALL be considered new”.
Trait Implementations§
Source§impl Clone for CounterKind
impl Clone for CounterKind
impl Copy for CounterKind
Source§impl Debug for CounterKind
impl Debug for CounterKind
impl Eq for CounterKind
Source§impl Hash for CounterKind
impl Hash for CounterKind
Source§impl PartialEq for CounterKind
impl PartialEq for CounterKind
impl StructuralPartialEq for CounterKind
Auto Trait Implementations§
impl Forget for CounterKind
impl Freeze for CounterKind
impl Move for CounterKind
impl RefUnwindSafe for CounterKind
impl Send for CounterKind
impl Sync for CounterKind
impl Unpin for CounterKind
impl UnsafeUnpin for CounterKind
impl UnwindSafe for CounterKind
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