pub struct EntropyMonitor { /* private fields */ }Expand description
Entropy pool monitor for key generation security
Implementations§
Source§impl EntropyMonitor
impl EntropyMonitor
Sourcepub fn new_default() -> Self
pub fn new_default() -> Self
Create a new entropy monitor with default threshold
Sourcepub fn has_sufficient_entropy(&self) -> bool
pub fn has_sufficient_entropy(&self) -> bool
Check if sufficient entropy is available
Sourcepub fn collect_entropy(&self) -> Result<()>
pub fn collect_entropy(&self) -> Result<()>
Collect entropy from various sources
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for EntropyMonitor
impl RefUnwindSafe for EntropyMonitor
impl Send for EntropyMonitor
impl Sync for EntropyMonitor
impl Unpin 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