pub enum SlotKind {
Empty,
Vault,
Device,
Portable,
Recovery,
Unknown(u8),
}Expand description
一个槽位在目录里记录的类型。
编码与规范 §3.5.4 一一对应。
Variants§
Empty
空槽,对应 slot 区的随机填充。
Vault
日常浏览密码。
Device
设备密钥(生物识别)。
Portable
单文件独立密码。
Recovery
恢复码。
Unknown(u8)
本实现不认识的类型。
不得当成空槽:把未知当空,新版本写的槽会被旧版本覆盖掉。 保留原始字节,改写时原样写回。
Implementations§
Trait Implementations§
impl Copy for SlotKind
impl Eq for SlotKind
Source§impl From<CredentialKind> for SlotKind
impl From<CredentialKind> for SlotKind
Source§fn from(k: CredentialKind) -> Self
fn from(k: CredentialKind) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlotKind
Auto Trait Implementations§
impl Forget for SlotKind
impl Freeze for SlotKind
impl RefUnwindSafe for SlotKind
impl Send for SlotKind
impl Sync for SlotKind
impl Unpin for SlotKind
impl UnsafeUnpin for SlotKind
impl UnwindSafe for SlotKind
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