#[repr(transparent)]pub struct TrngConfig(pub u32);
Expand description
Selecting the inverter-chain length.
Tuple Fields§
§0: u32
Implementations§
Source§impl TrngConfig
impl TrngConfig
Sourcepub const fn rnd_src_sel(&self) -> u8
pub const fn rnd_src_sel(&self) -> u8
Selects the number of inverters (out of four possible selections) in the ring oscillator (the entropy source).
Sourcepub fn set_rnd_src_sel(&mut self, val: u8)
pub fn set_rnd_src_sel(&mut self, val: u8)
Selects the number of inverters (out of four possible selections) in the ring oscillator (the entropy source).
Sourcepub fn set_reserved(&mut self, val: u32)
pub fn set_reserved(&mut self, val: u32)
RESERVED
Trait Implementations§
Source§impl Clone for TrngConfig
impl Clone for TrngConfig
Source§fn clone(&self) -> TrngConfig
fn clone(&self) -> TrngConfig
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 TrngConfig
impl Debug for TrngConfig
Source§impl Default for TrngConfig
impl Default for TrngConfig
Source§fn default() -> TrngConfig
fn default() -> TrngConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for TrngConfig
impl PartialEq for TrngConfig
impl Copy for TrngConfig
impl Eq for TrngConfig
impl StructuralPartialEq for TrngConfig
Auto Trait Implementations§
impl Freeze for TrngConfig
impl RefUnwindSafe for TrngConfig
impl Send for TrngConfig
impl Sync for TrngConfig
impl Unpin for TrngConfig
impl UnwindSafe for TrngConfig
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