pub struct FidlStorage { /* private fields */ }
Expand description
Stores device level settings in persistent storage. User level settings should not use this.
Implementations§
Source§impl FidlStorage
impl FidlStorage
Sourcepub async fn write<T>(&self, new_value: T) -> Result<UpdateState, Error>
pub async fn write<T>(&self, new_value: T) -> Result<UpdateState, Error>
Write new_value
to storage. The write will be persisted to disk at a set interval.
Auto Trait Implementations§
impl Freeze for FidlStorage
impl !RefUnwindSafe for FidlStorage
impl !Send for FidlStorage
impl !Sync for FidlStorage
impl Unpin for FidlStorage
impl !UnwindSafe for FidlStorage
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