#[non_exhaustive]pub struct Config {Show 16 fields
pub sample_size: u16,
pub entropy_delay: u16,
pub freq_counter_max: u32,
pub freq_counter_min: u32,
pub monobit_limit_max: u16,
pub monobit_limit_range: u16,
pub run_length1_limit_max: u16,
pub run_length1_limit_range: u16,
pub run_length2_limit_max: u16,
pub run_length2_limit_range: u16,
pub run_length3_limit_max: u16,
pub run_length3_limit_range: u16,
pub retry_count: u8,
pub long_run_limit_max: u8,
pub sparse_bit_limit: u16,
pub osc_mode: OscMode,
}Expand description
True random number generator configuration parameters.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sample_size: u16Total number of Entropy samples that will be taken during Entropy generation.
entropy_delay: u16Length (in system clocks) of each Entropy sample taken.
freq_counter_max: u32Frequency Counter Maximum Limit
freq_counter_min: u32Frequency Counter Minimum Limit
monobit_limit_max: u16Statistical check monobit max limit
monobit_limit_range: u16Statistical check monobit range
run_length1_limit_max: u16Statistical check run length 1 limit max
run_length1_limit_range: u16Statistical check run length 1 limit range
run_length2_limit_max: u16Statistical check run length 2 limit max
run_length2_limit_range: u16Statistical check run length 2 limit range
run_length3_limit_max: u16Statistical check run length 3 limit max
run_length3_limit_range: u16Statistical check run length 3 limit range
retry_count: u8Retry count
long_run_limit_max: u8Long run limit max
sparse_bit_limit: u16Sparse bit limit
osc_mode: OscModeOscillator mode
Trait Implementations§
impl Copy for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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