embedded-shadow 0.1.2

Zero-alloc shadow register table with dirty tracking for embedded systems
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Receives persistence keys and triggers storage operations.
pub trait PersistTrigger<PK> {
    /// Queues a key identifying data that needs to be persisted.
    fn push_key(&mut self, key: PK);
    /// Signals that queued keys should be persisted to storage.
    fn request_persist(&mut self);
}

/// No-op trigger that discards all persistence requests.
pub struct NoPersist;

impl<PK> PersistTrigger<PK> for NoPersist {
    fn push_key(&mut self, _key: PK) {}
    fn request_persist(&mut self) {}
}