Skip to main content

ObjectSource

Trait ObjectSource 

Source
pub trait ObjectSource {
    // Required method
    fn get(&self, key: &str) -> Result<Option<Vec<u8>>, DataError>;
}
Expand description

Read-only byte store. Ok(None) means the key is absent (fail-soft).

Required Methods§

Source

fn get(&self, key: &str) -> Result<Option<Vec<u8>>, DataError>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§