pub struct OsRng;Expand description
OS-backed RNG: the kernel’s generator through getrandom(3) on Linux
(served without a system call where the C library and kernel support it),
/dev/urandom elsewhere, the hardware RNG on ESP-IDF.
Trait Implementations§
Auto Trait Implementations§
impl Forget for OsRng
impl Freeze for OsRng
impl RefUnwindSafe for OsRng
impl Send for OsRng
impl Sync for OsRng
impl Unpin for OsRng
impl UnsafeUnpin for OsRng
impl UnwindSafe for OsRng
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