pub struct PersistentParamState {
pub is_stored: bool,
pub default_value: Value,
pub stored_value: Option<Value>,
}Expand description
State of a persistent parameter
Fields§
§is_stored: boolTrue if a value is currently stored in persistent storage
default_value: ValueThe firmware’s default value for this parameter
stored_value: Option<Value>The value stored in persistent storage (if is_stored is true)
Trait Implementations§
Source§impl Clone for PersistentParamState
impl Clone for PersistentParamState
Source§fn clone(&self) -> PersistentParamState
fn clone(&self) -> PersistentParamState
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 moreAuto Trait Implementations§
impl Freeze for PersistentParamState
impl RefUnwindSafe for PersistentParamState
impl Send for PersistentParamState
impl Sync for PersistentParamState
impl Unpin for PersistentParamState
impl UnsafeUnpin for PersistentParamState
impl UnwindSafe for PersistentParamState
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