pub struct EntropySourceHandle { /* private fields */ }Expand description
An opaque handle for entropy sources.
A EntropySourceHandle wraps different types of entropy sources:
NO_ENTROPY_SOURCESTANDARD_ENTROPY_SOURCE- Types implementing the
EntropySourcetrait.
A EntropySourceHandle is accepted by set_entropy_source function.
Implementations§
Source§impl EntropySourceHandle
impl EntropySourceHandle
Sourcepub fn new(source: impl EntropySource + 'static) -> Self
pub fn new(source: impl EntropySource + 'static) -> Self
Creates an EntropySourceHandle from a type implementing the EntropySource trait.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EntropySourceHandle
impl !RefUnwindSafe for EntropySourceHandle
impl Send for EntropySourceHandle
impl !Sync for EntropySourceHandle
impl Unpin for EntropySourceHandle
impl !UnwindSafe for EntropySourceHandle
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