pub struct EncryptedDirname {
pub disk_name: String,
pub sidecar: Option<Vec<u8>>,
}Expand description
加密一个目录名的结果。
Fields§
§disk_name: String落在磁盘上的名字(已含 .omy 后缀)。
sidecar: Option<Vec<u8>>名字被截断时,需要写进 DIRNAME_SIDECAR 的完整密文。
None 表示 disk_name 自身已包含完整信息,不需要边车文件。
调用方必须处理 Some 的情况,否则该目录名将无法还原。
Trait Implementations§
Source§impl Clone for EncryptedDirname
impl Clone for EncryptedDirname
Source§impl Debug for EncryptedDirname
impl Debug for EncryptedDirname
impl Eq for EncryptedDirname
Source§impl PartialEq for EncryptedDirname
impl PartialEq for EncryptedDirname
impl StructuralPartialEq for EncryptedDirname
Auto Trait Implementations§
impl Forget for EncryptedDirname
impl Freeze for EncryptedDirname
impl RefUnwindSafe for EncryptedDirname
impl Send for EncryptedDirname
impl Sync for EncryptedDirname
impl Unpin for EncryptedDirname
impl UnsafeUnpin for EncryptedDirname
impl UnwindSafe for EncryptedDirname
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