pub enum Protection {
OsKeychain,
WorkspaceVault,
BrowserWrapped,
LocalFile,
Memory,
}Variants§
OsKeychain
WorkspaceVault
Sealed in the workspace’s vault, as an item the app keeps: synced to the person’s other devices and released only to the app’s own process.
BrowserWrapped
Encrypted under a key the browser will not export through WebCrypto; not a
boundary against a compromised browser or origin.
LocalFile
Sealed in owner-only files under a key file beside them: as private as the machine’s disk and the Unix account that owns them.
Memory
In this process only; gone when it exits.
Trait Implementations§
Source§impl Clone for Protection
impl Clone for Protection
impl Copy for Protection
Source§impl Debug for Protection
impl Debug for Protection
impl Eq for Protection
Source§impl PartialEq for Protection
impl PartialEq for Protection
impl StructuralPartialEq for Protection
Auto Trait Implementations§
impl Forget for Protection
impl Freeze for Protection
impl Move for Protection
impl RefUnwindSafe for Protection
impl Send for Protection
impl Sync for Protection
impl Unpin for Protection
impl UnsafeUnpin for Protection
impl UnwindSafe for Protection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more