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