[][src]Trait bl602_hal::prelude::_embedded_hal_rng_Read

pub trait _embedded_hal_rng_Read {
    type Error;
    fn try_read(&mut self, buf: &mut [u8]) -> Result<usize, Error<Self::Error>>;
}

Nonblocking stream of random bytes.

Associated Types

type Error

An enumeration of RNG errors.

For infallible implementations, will be Infallible

Loading content...

Required methods

fn try_read(&mut self, buf: &mut [u8]) -> Result<usize, Error<Self::Error>>

Get a number of bytes from the RNG.

Loading content...

Implementors

Loading content...