Skip to main content

StorageProvider

Trait StorageProvider 

Source
pub trait StorageProvider: Send + Sync {
    // Required method
    fn scan_nodes(&self, label: &str) -> Result<Vec<StorageRow>, GfError>;
}
Expand description

Abstraction over different storage backends.

Required Methods§

Source

fn scan_nodes(&self, label: &str) -> Result<Vec<StorageRow>, GfError>

Scan all rows for the given node label.

§Errors

Returns GfError on I/O failure or if the label is unknown.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§