Metadata

Trait Metadata 

Source
pub trait Metadata {
    // Required methods
    fn op_write<T: AsRef<[u8]>>(&mut self, key: &[u8], value: T) -> Result<()>;
    fn op_read(&self, key: &[u8]) -> Result<Option<Vec<u8>>>;
}

Required Methods§

Source

fn op_write<T: AsRef<[u8]>>(&mut self, key: &[u8], value: T) -> Result<()>

Assigns an value to a key in the Metadata CF

Source

fn op_read(&self, key: &[u8]) -> Result<Option<Vec<u8>>>

Reads an value of a key from the Metadata CF

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§