Enum parsec_interface::operations::psa_key_attributes::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
A volatile key only exists as long as the identifier to it is not destroyed.
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
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Lifetime, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Lifetime, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Lifetime
impl UnwindSafe for Lifetime
Blanket Implementations
Mutably borrows from an owned value. Read more