pub enum KeyRef<'r> {
B128(&'r [u8; 16]),
B256(&'r [u8; 32]),
}Available on crate feature
allow-non-fips only.Expand description
Represents either a 128-bit or 256-bit ChaCha20 key.
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'r> Freeze for KeyRef<'r>
impl<'r> RefUnwindSafe for KeyRef<'r>
impl<'r> Send for KeyRef<'r>
impl<'r> Sync for KeyRef<'r>
impl<'r> Unpin for KeyRef<'r>
impl<'r> UnwindSafe for KeyRef<'r>
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