pub enum Protection {
Passphrase {
params: PassphraseParams,
salt: [u8; 16],
},
Keystore {
service: String,
account: String,
},
}Expand description
How a compartment’s key is found.
Variants§
Passphrase
Derived from a passphrase with Argon2id.
Fields
§
params: PassphraseParamsThe cost of the derivation.
Keystore
Kept in the platform’s keystore, under a service and an account name. Every compartment key has an account name of its own.
Trait Implementations§
Source§impl Clone for Protection
impl Clone for Protection
Source§fn clone(&self) -> Protection
fn clone(&self) -> Protection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Protection
impl Debug for Protection
impl Eq for Protection
Source§impl FromCbor for Protection
impl FromCbor 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.