#[repr(C)]pub enum LifetimeType {
Volatile = 0,
Persistent = 1,
}
Expand description
The base lifetime type of the object. Note that this does not ensure that the object is stored in a specific type of memory, the kernel is allowed to migrate objects with the Normal BackingType as it sees fit. For more information on object lifetime, see the book.
Variants§
Volatile = 0
This object is volatile, and is expected to be deleted after a power cycle.
Persistent = 1
This object is persistent, and should be deleted only after an explicit delete call.
Trait Implementations§
source§impl Clone for LifetimeType
impl Clone for LifetimeType
source§fn clone(&self) -> LifetimeType
fn clone(&self) -> LifetimeType
Returns a copy 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 LifetimeType
impl Debug for LifetimeType
source§impl Ord for LifetimeType
impl Ord for LifetimeType
source§fn cmp(&self, other: &LifetimeType) -> Ordering
fn cmp(&self, other: &LifetimeType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for LifetimeType
impl PartialEq for LifetimeType
source§impl PartialOrd for LifetimeType
impl PartialOrd for LifetimeType
impl Copy for LifetimeType
impl Eq for LifetimeType
impl StructuralPartialEq for LifetimeType
Auto Trait Implementations§
impl Freeze for LifetimeType
impl ObjSafe for LifetimeType
impl RefUnwindSafe for LifetimeType
impl Send for LifetimeType
impl Sync for LifetimeType
impl Unpin for LifetimeType
impl UnwindSafe for LifetimeType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.