Enum psa_crypto::types::key::Lifetime [−][src]
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)
Tuple Fields
0: u32
Implementations can offer other storage areas designated by other lifetime values as implementation-specific extensions.
Trait Implementations
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
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Lifetime
impl UnwindSafe for Lifetime
Blanket Implementations
Mutably borrows from an owned value. Read more