Trait UnrecordedBlocks

Source
pub trait UnrecordedBlocks {
    // Required methods
    fn insert(&mut self, height: Height, bytes: Bytes) -> Result<(), String>;
    fn remove(&mut self, height: &Height) -> Result<Option<Bytes>, String>;
}

Required Methods§

Source

fn insert(&mut self, height: Height, bytes: Bytes) -> Result<(), String>

Source

fn remove(&mut self, height: &Height) -> Result<Option<Bytes>, String>

Implementations on Foreign Types§

Source§

impl UnrecordedBlocks for BTreeMap<Height, Bytes>

Source§

fn insert(&mut self, height: Height, bytes: Bytes) -> Result<(), String>

Source§

fn remove(&mut self, height: &Height) -> Result<Option<Bytes>, String>

Implementors§