pub struct UserEntropySource { /* private fields */ }Expand description
User-provided entropy source
This entropy source allows users to provide their own entropy data, useful for specialized applications or when integrating with external entropy sources.
Implementations§
Trait Implementations§
Source§impl Clone for UserEntropySource
impl Clone for UserEntropySource
Source§fn clone(&self) -> UserEntropySource
fn clone(&self) -> UserEntropySource
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 UserEntropySource
impl Debug for UserEntropySource
Source§impl EntropySource for UserEntropySource
Available on crate feature alloc only.
impl EntropySource for UserEntropySource
Available on crate feature
alloc only.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 UserEntropySource
impl RefUnwindSafe for UserEntropySource
impl Send for UserEntropySource
impl Sync for UserEntropySource
impl Unpin for UserEntropySource
impl UnsafeUnpin for UserEntropySource
impl UnwindSafe for UserEntropySource
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