Struct lpc55_hal::peripherals::rng::Rng [−][src]
pub struct Rng<State = Unknown> { pub _state: State, // some fields omitted }
Fields
_state: State
Implementations
impl Rng
[src]
impl<State> Rng<State>
[src]
impl<State> Rng<State>
[src]
pub fn enabled(self, syscon: &mut Syscon) -> Rng<Enabled>
[src]
pub fn disabled(self, syscon: &mut Syscon) -> Rng<Disabled>
[src]
impl Rng<Enabled>
[src]
pub fn get_random_u32(&self) -> u32
[src]
pub fn module_id(&self) -> ModuleId
[src]
random method to get some information about the RNG
Trait Implementations
impl CryptoRng for Rng<Enabled>
[src]
impl CryptoRng for Rng<Enabled>
[src]
impl From<RNG> for Rng
[src]
impl Read for Rng<Enabled>
[src]
impl RngCore for Rng<Enabled>
[src]
fn next_u32(&mut self) -> u32
[src]
fn next_u64(&mut self) -> u64
[src]
fn fill_bytes(&mut self, dest: &mut [u8])
[src]
fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), Error>
[src]
impl RngCore for Rng<Enabled>
[src]
fn next_u32(&mut self) -> u32
[src]
fn next_u64(&mut self) -> u64
[src]
fn fill_bytes(&mut self, dest: &mut [u8])
[src]
fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), Error>
[src]
Auto Trait Implementations
impl<State> Send for Rng<State> where
State: Send,
State: Send,
impl<State = Unknown> !Sync for Rng<State>
impl<State> Unpin for Rng<State> where
State: Unpin,
State: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,