#[repr(u8)]pub enum DataItemStatus {
Delete = 248,
Valid = 252,
Writing = 254,
Empty = 255,
Unknown = 0,
}Expand description
Enum representing the lifecycle status of an NVDM data item.
Variants§
Delete = 248
The data item is marked for deletion.
Valid = 252
The data item is valid and fully written.
Writing = 254
The data item is currently being written.
Empty = 255
The data item slot is empty and unused.
Unknown = 0
any other status
Trait Implementations§
Source§impl Clone for DataItemStatus
impl Clone for DataItemStatus
Source§fn clone(&self) -> DataItemStatus
fn clone(&self) -> DataItemStatus
Returns a duplicate 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 DataItemStatus
impl Debug for DataItemStatus
Source§impl<'de> Deserialize<'de> for DataItemStatus
impl<'de> Deserialize<'de> for DataItemStatus
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 PartialEq for DataItemStatus
impl PartialEq for DataItemStatus
Source§impl Serialize for DataItemStatus
impl Serialize for DataItemStatus
Source§impl TryFrom<u8> for DataItemStatus
impl TryFrom<u8> for DataItemStatus
impl Copy for DataItemStatus
impl StructuralPartialEq for DataItemStatus
Auto Trait Implementations§
impl Freeze for DataItemStatus
impl RefUnwindSafe for DataItemStatus
impl Send for DataItemStatus
impl Sync for DataItemStatus
impl Unpin for DataItemStatus
impl UnwindSafe for DataItemStatus
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more