pub struct OsEntropySource { /* private fields */ }Expand description
Operating system entropy source
This entropy source uses the operating system’s secure random number
generator, typically /dev/urandom on Unix-like systems or
CryptGenRandom on Windows.
Implementations§
Trait Implementations§
Source§impl Clone for OsEntropySource
impl Clone for OsEntropySource
Source§fn clone(&self) -> OsEntropySource
fn clone(&self) -> OsEntropySource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OsEntropySource
impl Debug for OsEntropySource
Source§impl Default for OsEntropySource
impl Default for OsEntropySource
Source§impl EntropySource for OsEntropySource
impl EntropySource for OsEntropySource
Source§fn get_entropy(&mut self, dest: &mut [u8]) -> Result<()>
fn get_entropy(&mut self, dest: &mut [u8]) -> Result<()>
Get entropy from the source Read more
Source§fn initialize(&mut self, config: &EntropyConfig) -> Result<()>
fn initialize(&mut self, config: &EntropyConfig) -> Result<()>
Initialize the entropy source Read more
Source§fn is_available(&self) -> bool
fn is_available(&self) -> bool
Check if the entropy source is available Read more
Source§fn source_type(&self) -> EntropySourceType
fn source_type(&self) -> EntropySourceType
Get the entropy source’s type Read more
Source§fn max_entropy_per_call(&self) -> Option<usize>
fn max_entropy_per_call(&self) -> Option<usize>
Get the maximum entropy that can be obtained in one call Read more
Source§fn requires_initialization(&self) -> bool
fn requires_initialization(&self) -> bool
Check if the entropy source requires initialization Read more
Auto Trait Implementations§
impl Freeze for OsEntropySource
impl RefUnwindSafe for OsEntropySource
impl Send for OsEntropySource
impl Sync for OsEntropySource
impl Unpin for OsEntropySource
impl UnsafeUnpin for OsEntropySource
impl UnwindSafe for OsEntropySource
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