[][src]Trait embedded_hal::rng::Read

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

Nonblocking stream of random bytes.

Associated Types

type Error[]

An enumeration of RNG errors.

For infallible implementations, will be Infallible

Required methods

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

Get a number of bytes from the RNG.

Implementors