Skip to main content

WriteSlots

Trait WriteSlots 

Source
pub trait WriteSlots: WriteOracle {
    // Required methods
    fn slot(&self, write: WriteId) -> Result<Option<Slot>, Self::Error>;
    fn landed(&self, write: WriteId) -> Result<bool, Self::Error>;
}
Expand description

Published-write locations from the snapshot’s staged metadata and history.

Required Methods§

Source

fn slot(&self, write: WriteId) -> Result<Option<Slot>, Self::Error>

Containing slot, or absence when no authenticated metadata establishes it.

Source

fn landed(&self, write: WriteId) -> Result<bool, Self::Error>

Whether the metadata holds a write of write’s device numbered at or above it. A device’s writes land in the order it numbered them, so write landed at or before that write’s slot (coven.md §16.7).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§