Enum imxrt_hal::trng::SampleMode
source · #[repr(u32)]pub enum SampleMode {
VonNeumann = 0,
Raw = 1,
VonNeumannRaw = 2,
}
Expand description
TRNG sampling mode
Variants§
VonNeumann = 0
von Neumann data in both entropy shifter and statistical checks. Approximately 4x slower than the other modes.
Raw = 1
Raw data in both entropy shifter and statistical checks. Likely lower quality than the other two modes.
VonNeumannRaw = 2
von Neumann data in entropy shifter, raw data in statistical checks
Trait Implementations§
source§impl Clone for SampleMode
impl Clone for SampleMode
source§fn clone(&self) -> SampleMode
fn clone(&self) -> SampleMode
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 moresource§impl Debug for SampleMode
impl Debug for SampleMode
source§impl PartialEq for SampleMode
impl PartialEq for SampleMode
source§fn eq(&self, other: &SampleMode) -> bool
fn eq(&self, other: &SampleMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SampleMode
impl Eq for SampleMode
impl StructuralEq for SampleMode
impl StructuralPartialEq for SampleMode
Auto Trait Implementations§
impl RefUnwindSafe for SampleMode
impl Send for SampleMode
impl Sync for SampleMode
impl Unpin for SampleMode
impl UnwindSafe for SampleMode
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