struct ReseedingCore<R, Rsdr> {
inner: R,
reseeder: Rsdr,
threshold: i64,
bytes_until_reseed: i64,
fork_counter: usize,
}
Fields§
§inner: R
§reseeder: Rsdr
§threshold: i64
§bytes_until_reseed: i64
§fork_counter: usize
Implementations§
source§impl<R, Rsdr> ReseedingCore<R, Rsdr>
impl<R, Rsdr> ReseedingCore<R, Rsdr>
fn is_forked(&self, global_fork_counter: usize) -> bool
fn reseed_and_generate( &mut self, results: &mut <Self as BlockRngCore>::Results, global_fork_counter: usize, )
Trait Implementations§
source§impl<R, Rsdr> BlockRngCore for ReseedingCore<R, Rsdr>
impl<R, Rsdr> BlockRngCore for ReseedingCore<R, Rsdr>
source§type Item = <R as BlockRngCore>::Item
type Item = <R as BlockRngCore>::Item
Results element type, e.g.
u32
.source§type Results = <R as BlockRngCore>::Results
type Results = <R as BlockRngCore>::Results
Results type. This is the ‘block’ an RNG implementing
BlockRngCore
generates, which will usually be an array like [u32; 16]
.source§impl<R, Rsdr> Clone for ReseedingCore<R, Rsdr>
impl<R, Rsdr> Clone for ReseedingCore<R, Rsdr>
source§fn clone(&self) -> ReseedingCore<R, Rsdr>
fn clone(&self) -> ReseedingCore<R, Rsdr>
Returns a copy 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 moreimpl<R, Rsdr> CryptoRng for ReseedingCore<R, Rsdr>
Auto Trait Implementations§
impl<R, Rsdr> Freeze for ReseedingCore<R, Rsdr>
impl<R, Rsdr> RefUnwindSafe for ReseedingCore<R, Rsdr>where
R: RefUnwindSafe,
Rsdr: RefUnwindSafe,
impl<R, Rsdr> Send for ReseedingCore<R, Rsdr>
impl<R, Rsdr> Sync for ReseedingCore<R, Rsdr>
impl<R, Rsdr> Unpin for ReseedingCore<R, Rsdr>
impl<R, Rsdr> UnwindSafe for ReseedingCore<R, Rsdr>where
R: UnwindSafe,
Rsdr: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)