#[non_exhaustive]#[repr(u8)]pub enum FramePersistence {
Volatile = 0,
VolatileAndNonVolatile = 1,
}Expand description
Storage persistence for frame_end.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Volatile = 0
Volatile: applied to RAM only.
VolatileAndNonVolatile = 1
Applied to RAM and stored in EEPROM.
Trait Implementations§
Source§impl Clone for FramePersistence
impl Clone for FramePersistence
Source§fn clone(&self) -> FramePersistence
fn clone(&self) -> FramePersistence
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FramePersistence
Source§impl Debug for FramePersistence
impl Debug for FramePersistence
impl Eq for FramePersistence
Source§impl From<FramePersistence> for u8
impl From<FramePersistence> for u8
Source§fn from(enum_value: FramePersistence) -> Self
fn from(enum_value: FramePersistence) -> Self
Converts to this type from the input type.
Source§impl Hash for FramePersistence
impl Hash for FramePersistence
Source§impl PartialEq for FramePersistence
impl PartialEq for FramePersistence
impl StructuralPartialEq for FramePersistence
Source§impl TryFrom<u8> for FramePersistence
impl TryFrom<u8> for FramePersistence
Source§type Error = TryFromPrimitiveError<FramePersistence>
type Error = TryFromPrimitiveError<FramePersistence>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for FramePersistence
impl TryFromPrimitive for FramePersistence
const NAME: &'static str = "FramePersistence"
type Primitive = u8
type Error = TryFromPrimitiveError<FramePersistence>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for FramePersistence
impl RefUnwindSafe for FramePersistence
impl Send for FramePersistence
impl Sync for FramePersistence
impl Unpin for FramePersistence
impl UnsafeUnpin for FramePersistence
impl UnwindSafe for FramePersistence
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