pub struct SecurityLevelConfig {
pub level: u8,
pub max_attempts: Option<u8>,
pub lockout_duration: Option<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: Option<u8>Max failed key attempts before lockout is applied.
lockout_duration: Option<Duration>Duration 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
Auto 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