pub struct ContentKey(/* private fields */);Expand description
Implementations§
Source§impl ContentKey
impl ContentKey
pub fn generate() -> Result<Self, CryptoError>
Sourcepub fn from_bytes(bytes: [u8; 32]) -> Self
pub fn from_bytes(bytes: [u8; 32]) -> Self
Imports known bytes for deterministic test inputs only.
Production callers must use generate; this cannot erase caller copies.
Auto Trait Implementations§
impl Forget for ContentKey
impl Freeze for ContentKey
impl Move for ContentKey
impl RefUnwindSafe for ContentKey
impl Send for ContentKey
impl Sync for ContentKey
impl Unpin for ContentKey
impl UnsafeUnpin for ContentKey
impl UnwindSafe for ContentKey
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