Struct Random
pub struct Random(/* private fields */);Expand description
A source of cryptographically secure random bytes: invitation secrets, user codes and pairing slots are drawn from it.
This crate keeps no random number generator of its own in a default build, so the caller
passes one: coqui-peer-tls gives the one of its TLS provider, and with the pin feature
Random::os reads the operating system’s. A test may pass a deterministic one.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Random
impl !UnwindSafe for Random
impl Freeze for Random
impl Send for Random
impl Sync for Random
impl Unpin for Random
impl UnsafeUnpin for Random
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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