Skip to main content

OverlayLike

Trait OverlayLike 

Source
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§

Source

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".

Implementors§

Source§

impl<K, V> OverlayLike<K, V> for OverlayStorage<K, V>
where K: Serialize + for<'de> Deserialize<'de> + Clone + Eq + Hash + Send + Sync + 'static, V: Serialize + for<'de> Deserialize<'de> + Clone + Send + Sync + 'static,