Skip to main content

BlockStore

Trait BlockStore 

Source
pub trait BlockStore:
    Send
    + Sync
    + 'static {
    // Required method
    fn read(&self, cell: CellKey) -> Result<Option<Vec<u8>>>;
}
Expand description

Woher die rohen Block-Bytes einer Zelle kommen.

Der Aufruf geschieht auf einem Worker-Thread und darf dort so lange brauchen, wie er will — der Haupt-Thread wartet nie auf ihn.

Required Methods§

Source

fn read(&self, cell: CellKey) -> Result<Option<Vec<u8>>>

Block-Inhalt lesen; Ok(None) heißt: diesen Block gibt es nicht (die Anforderung schlägt fehl, die Quelle bleibt aber nutzbar).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§