Trait wral::State[][src]

pub trait State: 'static + Clone + Sync + Send + IntoCbor + FromCbor {
    fn on_add_entry(&mut self, new_entry: &Entry) -> Result<()>;
}

Callback trait for updating application state in relation to Wal type.

Required methods

fn on_add_entry(&mut self, new_entry: &Entry) -> Result<()>[src]

Loading content...

Implementors

impl State for NoState[src]

Loading content...