pub trait OverlayLike<K, V>: Send + Sync {
// Required method
fn extract_overlay(&self) -> StorageResult<OverlayDelta<K, V>>;
}Expand description
Trait implemented by OverlayStorage<K, V> to expose its buffered writes/deletes so that a
caller (e.g. atomic bundle commit) can drain them back onto a target storage.
Required Methods§
Sourcefn extract_overlay(&self) -> StorageResult<OverlayDelta<K, V>>
fn extract_overlay(&self) -> StorageResult<OverlayDelta<K, V>>
Returns the current in-memory overlay state: pending writes, pending deletes (tombstones), and whether the base was logically cleared.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".