pub struct SecurityLevelConfig {
pub level: u8,
pub max_attempts: u8,
pub lockout_duration: Duration,
pub seed_length: usize,
pub key_length: usize,
}Expand description
Configuration for a single security access level.
Mirrors a Security entry in an ODX file.
Fields§
§level: u8Request Seed byte for this level (always odd: 0x01, 0x03, 0x05 …).
max_attempts: u8Max failed key attempts before lockout is applied.
lockout_duration: DurationDuration of the lockout after exceeding max attempts.
seed_length: usizeExpected seed length in bytes.
key_length: usizeExpected key length in bytes.
Trait Implementations§
Source§impl Clone for SecurityLevelConfig
impl Clone for SecurityLevelConfig
Source§fn clone(&self) -> SecurityLevelConfig
fn clone(&self) -> SecurityLevelConfig
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 moreAuto Trait Implementations§
impl Freeze for SecurityLevelConfig
impl RefUnwindSafe for SecurityLevelConfig
impl Send for SecurityLevelConfig
impl Sync for SecurityLevelConfig
impl Unpin for SecurityLevelConfig
impl UnsafeUnpin for SecurityLevelConfig
impl UnwindSafe for SecurityLevelConfig
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