Trait lnp::channel::History[][src]

pub trait History {
    type State;
    type Error: Error;
    fn height(&self) -> usize;
fn get(&self, height: usize) -> Result<Self::State, Self::Error>;
fn top(&self) -> Result<Self::State, Self::Error>;
fn bottom(&self) -> Result<Self::State, Self::Error>;
fn dig(&self) -> Result<Self::State, Self::Error>;
fn push(&mut self, state: Self::State) -> Result<&mut Self, Self::Error>; }

Associated Types

Loading content...

Required methods

fn height(&self) -> usize[src]

fn get(&self, height: usize) -> Result<Self::State, Self::Error>[src]

fn top(&self) -> Result<Self::State, Self::Error>[src]

fn bottom(&self) -> Result<Self::State, Self::Error>[src]

fn dig(&self) -> Result<Self::State, Self::Error>[src]

fn push(&mut self, state: Self::State) -> Result<&mut Self, Self::Error>[src]

Loading content...

Implementors

Loading content...