pub struct Rng { /* private fields */ }Expand description
Constrained RNG peripheral
Implementations§
Source§impl Rng
impl Rng
pub fn free(self) -> RNG
pub fn get_random_data(&self) -> u32
pub fn is_interrupt_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
pub fn is_clock_error(&self) -> bool
pub fn is_seed_error(&self) -> bool
pub fn is_data_ready(&self) -> bool
pub fn possibly_invalid_random_data(&self) -> u32
Trait Implementations§
Source§impl RngCore for Rng
impl RngCore for Rng
Source§fn fill_bytes(&mut self, dest: &mut [u8])
fn fill_bytes(&mut self, dest: &mut [u8])
Fill
dest with random data. Read moreimpl CryptoRng for Rng
Auto Trait Implementations§
impl Freeze for Rng
impl RefUnwindSafe for Rng
impl Send for Rng
impl !Sync for Rng
impl Unpin for Rng
impl UnwindSafe for Rng
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> CryptoRngCore for T
impl<T> CryptoRngCore for T
Source§fn as_rngcore(&mut self) -> &mut dyn RngCore
fn as_rngcore(&mut self) -> &mut dyn RngCore
Upcast to an
RngCore trait object.