pub struct NullParamStore;Expand description
No-op store: the default when persistence is disabled.
Trait Implementations§
Source§impl Clone for NullParamStore
impl Clone for NullParamStore
Source§fn clone(&self) -> NullParamStore
fn clone(&self) -> NullParamStore
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 NullParamStore
impl Debug for NullParamStore
Source§impl Default for NullParamStore
impl Default for NullParamStore
Source§fn default() -> NullParamStore
fn default() -> NullParamStore
Returns the “default value” for a type. Read more
Source§impl ParamStore for NullParamStore
impl ParamStore for NullParamStore
Source§fn load(&self, _apply: &mut dyn FnMut(&str, ParameterValue))
fn load(&self, _apply: &mut dyn FnMut(&str, ParameterValue))
Apply each persisted
(name, value) via apply. Called once at boot
after defaults are declared, so persisted values override them.Source§fn save(
&mut self,
_params: &mut dyn Iterator<Item = (&str, &ParameterValue)>,
) -> Result<(), ParamStoreError>
fn save( &mut self, _params: &mut dyn Iterator<Item = (&str, &ParameterValue)>, ) -> Result<(), ParamStoreError>
Persist the full current parameter set.
params yields (name, value)
for every declared parameter; called after a runtime set changes a
value. Non-scalar values (arrays, NotSet) are backend-defined and may
be skipped.impl Copy for NullParamStore
Auto Trait Implementations§
impl Freeze for NullParamStore
impl RefUnwindSafe for NullParamStore
impl Send for NullParamStore
impl Sync for NullParamStore
impl Unpin for NullParamStore
impl UnsafeUnpin for NullParamStore
impl UnwindSafe for NullParamStore
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