pub struct OsNonceSource;Expand description
OS-backed nonce source. On tier-1-kms / tier-2-multi-kms this
pulls from the underlying AEAD crate’s default RNG hook (itself
getrandom-backed). On the default feature set it is still
constructible — encryption paths reject before the nonce source is
consulted.
Trait Implementations§
Source§impl Clone for OsNonceSource
impl Clone for OsNonceSource
Source§fn clone(&self) -> OsNonceSource
fn clone(&self) -> OsNonceSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OsNonceSource
impl Debug for OsNonceSource
Source§impl Default for OsNonceSource
impl Default for OsNonceSource
Source§fn default() -> OsNonceSource
fn default() -> OsNonceSource
Returns the “default value” for a type. Read more
Source§impl NonceSource for OsNonceSource
impl NonceSource for OsNonceSource
Source§fn fill(&self, out: &mut [u8])
fn fill(&self, out: &mut [u8])
Fill
out with len fresh nonce bytes. len matches
NonceBytes::expected_len for the active AEAD kind; panics /
short writes are illegal — return an error via the caller’s
wrapper if needed.impl Copy for OsNonceSource
Auto Trait Implementations§
impl Freeze for OsNonceSource
impl RefUnwindSafe for OsNonceSource
impl Send for OsNonceSource
impl Sync for OsNonceSource
impl Unpin for OsNonceSource
impl UnsafeUnpin for OsNonceSource
impl UnwindSafe for OsNonceSource
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