[][src]Trait orga::store::Flush

pub trait Flush {
    fn flush(&mut self) -> Result<()>;
}

A trait for types which contain data that can be flushed to an underlying store.

Required methods

fn flush(&mut self) -> Result<()>

Loading content...

Implementors

impl<'a> Flush for MerkStore<'a>[src]

fn flush(&mut self) -> Result<()>[src]

Flush is a no-op for MerkStore.

impl<S: Store> Flush for BufStore<S>[src]

fn flush(&mut self) -> Result<()>[src]

Consumes the BufStore's in-memory buffer and writes all of its values to the underlying store.

After calling flush, the BufStore will still be valid and wrap the underlying store, but its in-memory buffer will be empty.

Loading content...