pub struct CoapRng {}Expand description
Implementation of the rand::TryRngCore trait based on libcoap’s PRNG.
Trait Implementations§
Source§impl TryRngCore for CoapRng
impl TryRngCore for CoapRng
Source§fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), RngError>
fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), RngError>
Fill
dest entirely with random data.Source§fn unwrap_mut(&mut self) -> UnwrapMut<'_, Self>
fn unwrap_mut(&mut self) -> UnwrapMut<'_, Self>
Wrap RNG with the
UnwrapMut wrapper.Source§fn read_adapter(&mut self) -> RngReadAdapter<'_, Self>where
Self: Sized,
fn read_adapter(&mut self) -> RngReadAdapter<'_, Self>where
Self: Sized,
Convert an
RngCore to a RngReadAdapter.Auto Trait Implementations§
impl Freeze for CoapRng
impl RefUnwindSafe for CoapRng
impl Send for CoapRng
impl Sync for CoapRng
impl Unpin for CoapRng
impl UnsafeUnpin for CoapRng
impl UnwindSafe for CoapRng
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