[][src]Struct store::DiskStore

pub struct DiskStore { /* fields omitted */ }

A wrapped leveldb database.

Methods

impl LevelDB[src]

pub fn open(path: &Path) -> Result<Self, Error>[src]

Open a database at path, creating a new database if one does not already exist.

Trait Implementations

impl Store for LevelDB[src]

fn get_bytes(&self, col: &str, key: &[u8]) -> Result<Option<Vec<u8>>, Error>[src]

Retrieve some bytes in column with key.

fn put_bytes(&self, col: &str, key: &[u8], val: &[u8]) -> Result<(), Error>[src]

Store some value in column, indexed with key.

fn key_exists(&self, col: &str, key: &[u8]) -> Result<bool, Error>[src]

Return true if key exists in column.

fn key_delete(&self, col: &str, key: &[u8]) -> Result<(), Error>[src]

Removes key from column.

impl Clone for LevelDB[src]

Auto Trait Implementations

impl Send for LevelDB

impl Unpin for LevelDB

impl Sync for LevelDB

impl UnwindSafe for LevelDB

impl RefUnwindSafe for LevelDB

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for 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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized