pub struct RealRandomHandler;Expand description
Real random handler using actual cryptographically secure randomness
Implementations§
Trait Implementations§
Source§impl Clone for RealRandomHandler
impl Clone for RealRandomHandler
Source§fn clone(&self) -> RealRandomHandler
fn clone(&self) -> RealRandomHandler
Returns a duplicate of the value. Read more
1.0.0 · 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 RealRandomHandler
impl Debug for RealRandomHandler
Source§impl Default for RealRandomHandler
impl Default for RealRandomHandler
Source§impl RandomCoreEffects for RealRandomHandler
impl RandomCoreEffects for RealRandomHandler
Source§fn random_bytes<'life0, 'async_trait>(
&'life0 self,
len: usize,
) -> Pin<Box<dyn Future<Output = Vec<u8>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn random_bytes<'life0, 'async_trait>(
&'life0 self,
len: usize,
) -> Pin<Box<dyn Future<Output = Vec<u8>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Generate random bytes of specified length
Auto Trait Implementations§
impl Freeze for RealRandomHandler
impl RefUnwindSafe for RealRandomHandler
impl Send for RealRandomHandler
impl Sync for RealRandomHandler
impl Unpin for RealRandomHandler
impl UnsafeUnpin for RealRandomHandler
impl UnwindSafe for RealRandomHandler
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