Skip to main content

HashStorageRO

Trait HashStorageRO 

Source
pub trait HashStorageRO {
    // Required method
    fn read_by_hash(&self, hash: H256) -> Option<Vec<u8>>;
}

Required Methods§

Source

fn read_by_hash(&self, hash: H256) -> Option<Vec<u8>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<'a, T: 'a + HashStorageRO + ?Sized> HashStorageRO for &'a T

Source§

fn read_by_hash(&self, hash: H256) -> Option<Vec<u8>>

Source§

impl<T: HashStorageRO + ?Sized> HashStorageRO for Box<T>

Source§

fn read_by_hash(&self, hash: H256) -> Option<Vec<u8>>

Implementors§