pub struct MacKey(/* private fields */);Expand description
Mutable-region MAC key.
Implementations§
Source§impl MacKey
impl MacKey
Sourcepub fn from_bytes(bytes: [u8; 32]) -> Self
pub fn from_bytes(bytes: [u8; 32]) -> Self
Take ownership of existing bytes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MacKey
impl RefUnwindSafe for MacKey
impl Send for MacKey
impl Sync for MacKey
impl Unpin for MacKey
impl UnsafeUnpin for MacKey
impl UnwindSafe for MacKey
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