Enum psa_crypto::types::key::Lifetime
source · pub enum Lifetime {
Volatile,
Persistent,
Custom(u32),
}
Expand description
The lifetime of a key indicates where it is stored and which application and system actions will create and destroy it.
Variants§
Volatile
A volatile key only exists as long as the identifier to it is not destroyed.
Persistent
A persistent key remains in storage until it is explicitly destroyed or until the corresponding storage area is wiped.
Custom(u32)
Implementations can offer other storage areas designated by other lifetime values as implementation-specific extensions.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Lifetime
impl<'de> Deserialize<'de> for Lifetime
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 From<Lifetime> for psa_key_lifetime_t
impl From<Lifetime> for psa_key_lifetime_t
source§impl From<u32> for Lifetime
impl From<u32> for Lifetime
source§fn from(lifetime: psa_key_lifetime_t) -> Self
fn from(lifetime: psa_key_lifetime_t) -> Self
Converts to this type from the input type.
source§impl PartialEq for Lifetime
impl PartialEq for Lifetime
impl Copy for Lifetime
impl Eq for Lifetime
impl StructuralEq for Lifetime
impl StructuralPartialEq for Lifetime
Auto Trait Implementations§
impl RefUnwindSafe for Lifetime
impl Send for Lifetime
impl Sync for Lifetime
impl Unpin for Lifetime
impl UnwindSafe for Lifetime
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