pub enum CustodyType {
InMemory,
Hardware,
Software,
}Expand description
The custody type for a given key, indicating where the key material is stored and how it is protected.
See ADR-006 for the custody model: production adapters use hardware-backed
custody, while the testing adapter uses CustodyType::InMemory.
Variants§
InMemory
Key material is stored in memory only (testing adapter).
Hardware
Key material is protected by a hardware security module (Secure Enclave, Android Keystore, TPM).
Software
Key material is stored in software (e.g., encrypted file on disk) but not in a hardware security module.
Trait Implementations§
Source§impl Clone for CustodyType
impl Clone for CustodyType
Source§fn clone(&self) -> CustodyType
fn clone(&self) -> CustodyType
Returns a duplicate of the value. Read more
1.0.0 · 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 CustodyType
impl Debug for CustodyType
Source§impl<'de> Deserialize<'de> for CustodyType
impl<'de> Deserialize<'de> for CustodyType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for CustodyType
impl Hash for CustodyType
Source§impl PartialEq for CustodyType
impl PartialEq for CustodyType
Source§impl Serialize for CustodyType
impl Serialize for CustodyType
impl Copy for CustodyType
impl Eq for CustodyType
impl StructuralPartialEq for CustodyType
Auto Trait Implementations§
impl Freeze for CustodyType
impl RefUnwindSafe for CustodyType
impl Send for CustodyType
impl Sync for CustodyType
impl Unpin for CustodyType
impl UnsafeUnpin for CustodyType
impl UnwindSafe for CustodyType
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