pub struct EntropyMonitor { /* private fields */ }Implementations§
Source§impl EntropyMonitor
impl EntropyMonitor
pub fn new(max_samples: usize, min_threshold: u32) -> Self
pub fn record(&self, entropy_bits: u32)
pub fn latest(&self) -> Option<u32>
pub fn average(&self) -> f64
pub fn min(&self) -> Option<u32>
pub fn alert_count(&self) -> u64
pub fn is_low(&self) -> bool
pub fn sample_count(&self) -> usize
Auto Trait Implementations§
impl !Freeze for EntropyMonitor
impl RefUnwindSafe for EntropyMonitor
impl Send for EntropyMonitor
impl Sync for EntropyMonitor
impl Unpin for EntropyMonitor
impl UnsafeUnpin for EntropyMonitor
impl UnwindSafe for EntropyMonitor
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