pub enum StorageClass {
Transient = 0,
Volatile = 1,
Restorable = 2,
Permanent = 3,
}
Expand description
Type of storage
Variants§
Transient = 0
The content is not kept in memory. It cannot be read back.
Volatile = 1
The content is kept in a volatile memory of the device. It is accessible for read, and is lost on power off.
Restorable = 2
The content is kept in a volatile memory of the device. It is accessible for read, and can be backed-up upon request in a permanent storage location. It is restored from the permanent location on device power on.
Permanent = 3
The content is kept in a permanent memory of the device. It is accessible for read and write.
Trait Implementations§
source§impl Clone for StorageClass
impl Clone for StorageClass
source§fn clone(&self) -> StorageClass
fn clone(&self) -> StorageClass
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 StorageClass
impl Debug for StorageClass
source§impl Display for StorageClass
impl Display for StorageClass
source§impl PartialEq for StorageClass
impl PartialEq for StorageClass
source§fn eq(&self, other: &StorageClass) -> bool
fn eq(&self, other: &StorageClass) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for StorageClass
impl StructuralPartialEq for StorageClass
Auto Trait Implementations§
impl Freeze for StorageClass
impl RefUnwindSafe for StorageClass
impl Send for StorageClass
impl Sync for StorageClass
impl Unpin for StorageClass
impl UnwindSafe for StorageClass
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