Skip to main content

NodeDb

Trait NodeDb 

Source
pub trait NodeDb {
    type Key: ?Sized;
    type Error: Debug;

    // Required method
    fn get(&self, key: &Self::Key) -> Result<Option<DBValue>, Self::Error>;
}
Expand description

Backend database trait. Read-only.

Required Associated Types§

Required Methods§

Source

fn get(&self, key: &Self::Key) -> Result<Option<DBValue>, Self::Error>

Get state trie node.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§