#[non_exhaustive]#[repr(u8)]pub enum GainPersistence {
Volatile = 0,
VolatileAndNonVolatile = 1,
NonVolatileOnly = 2,
}Expand description
How set_frequency_gains persists
the gains.
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.
NonVolatileOnly = 2
Stored in EEPROM only.
Trait Implementations§
Source§impl Clone for GainPersistence
impl Clone for GainPersistence
Source§fn clone(&self) -> GainPersistence
fn clone(&self) -> GainPersistence
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 GainPersistence
Source§impl Debug for GainPersistence
impl Debug for GainPersistence
impl Eq for GainPersistence
Source§impl From<GainPersistence> for u8
impl From<GainPersistence> for u8
Source§fn from(enum_value: GainPersistence) -> Self
fn from(enum_value: GainPersistence) -> Self
Converts to this type from the input type.
Source§impl Hash for GainPersistence
impl Hash for GainPersistence
Source§impl PartialEq for GainPersistence
impl PartialEq for GainPersistence
impl StructuralPartialEq for GainPersistence
Source§impl TryFrom<u8> for GainPersistence
impl TryFrom<u8> for GainPersistence
Source§type Error = TryFromPrimitiveError<GainPersistence>
type Error = TryFromPrimitiveError<GainPersistence>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for GainPersistence
impl TryFromPrimitive for GainPersistence
const NAME: &'static str = "GainPersistence"
type Primitive = u8
type Error = TryFromPrimitiveError<GainPersistence>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for GainPersistence
impl RefUnwindSafe for GainPersistence
impl Send for GainPersistence
impl Sync for GainPersistence
impl Unpin for GainPersistence
impl UnsafeUnpin for GainPersistence
impl UnwindSafe for GainPersistence
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