pub struct PersistedField<T, V> { /* private fields */ }Expand description
Read, write, and subscribe access to a generated persisted settings field.
Implementations§
Source§impl<T, V> PersistedField<T, V>
impl<T, V> PersistedField<T, V>
Source§impl<T, V> PersistedField<T, V>
impl<T, V> PersistedField<T, V>
Sourcepub fn set(&self, value: V) -> Result<(), SettingsError>
pub fn set(&self, value: V) -> Result<(), SettingsError>
Persists a new field value and updates the in-memory snapshot.
Source§impl<T, V> PersistedField<T, V>
impl<T, V> PersistedField<T, V>
Auto Trait Implementations§
impl<T, V> !RefUnwindSafe for PersistedField<T, V>
impl<T, V> !UnwindSafe for PersistedField<T, V>
impl<T, V> Freeze for PersistedField<T, V>
impl<T, V> Send for PersistedField<T, V>
impl<T, V> Sync for PersistedField<T, V>
impl<T, V> Unpin for PersistedField<T, V>
impl<T, V> UnsafeUnpin for PersistedField<T, V>
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