pub struct Profile4State { /* private fields */ }Expand description
State for E2E Profile 4 protection/checking.
Implementations§
Source§impl Profile4State
impl Profile4State
Sourcepub fn with_initial_counter(counter: u16) -> Self
pub fn with_initial_counter(counter: u16) -> Self
Create a new Profile 4 state with a specific initial counter.
Sourcepub const fn protect_counter(&self) -> u16
pub const fn protect_counter(&self) -> u16
Returns the current protection counter value.
Sourcepub const fn last_counter(&self) -> Option<u16>
pub const fn last_counter(&self) -> Option<u16>
Returns the last received counter value, or None if no message
has been checked yet.
Trait Implementations§
Source§impl Clone for Profile4State
impl Clone for Profile4State
Source§fn clone(&self) -> Profile4State
fn clone(&self) -> Profile4State
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 moreSource§impl Debug for Profile4State
impl Debug for Profile4State
Auto Trait Implementations§
impl Freeze for Profile4State
impl RefUnwindSafe for Profile4State
impl Send for Profile4State
impl Sync for Profile4State
impl Unpin for Profile4State
impl UnsafeUnpin for Profile4State
impl UnwindSafe for Profile4State
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