pub struct DirnameKey(/* private fields */);Expand description
目录名加密密钥。
独立类型而不是裸 SecretKey:这样类型系统会阻止把它误用成文件密钥
或反之。两者都是 32 字节,混用不会编译报错但会产出解不开的数据。
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for DirnameKey
impl Freeze for DirnameKey
impl RefUnwindSafe for DirnameKey
impl Send for DirnameKey
impl Sync for DirnameKey
impl Unpin for DirnameKey
impl UnsafeUnpin for DirnameKey
impl UnwindSafe for DirnameKey
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