[][src]Struct lsm_engine::LSMEngine

pub struct LSMEngine { /* fields omitted */ }

Implementations

impl LSMEngine[src]

pub fn recover_from(&mut self, wal_file: File) -> Result<()>[src]

pub fn clear(&mut self)[src]

pub fn write(&mut self, key: String, value: String) -> Result<()>[src]

pub fn read(&mut self, key: &str) -> Result<Option<String>>[src]

Unfortunately this is marked as mutable since relies on rust's seek api, which is also mutable. In the future, this might change to immutable if the seek api changes or if the issue becomes significant enough to warrant using Rc<RefCell<>>

pub fn delete(&mut self, key: &str) -> Result<()>[src]

pub fn contains(&mut self, key: &str) -> Result<bool>[src]

Trait Implementations

impl Default for LSMEngine[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,