pub struct FlashStorage<F: NorFlash> { /* private fields */ }Expand description
Persistence of the information bases over a NOR flash region.
Each persisted field is one map item, so a frame-counter update never rewrites keys or tables.
Trait Implementations§
Source§impl<F: NorFlash> StorageDriver for FlashStorage<F>
impl<F: NorFlash> StorageDriver for FlashStorage<F>
Source§async fn run(&self)
async fn run(&self)
Persists information-base changes as they happen; run this in its own task, or let the application runtime drive it.
Wakes whenever a persisted NIB/AIB attribute changes and flushes the dirty fields. Counter headroom keeps the actual flash write rate far below the change rate.
Auto Trait Implementations§
impl<F> !Freeze for FlashStorage<F>
impl<F> !RefUnwindSafe for FlashStorage<F>
impl<F> Send for FlashStorage<F>
impl<F> Sync for FlashStorage<F>
impl<F> Unpin for FlashStorage<F>
impl<F> UnsafeUnpin for FlashStorage<F>where
Mutex<Inner<F>>: UnsafeUnpin,
impl<F> UnwindSafe for FlashStorage<F>where
Mutex<Inner<F>>: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more