[][src]Struct caves::FileCave

pub struct FileCave { /* fields omitted */ }

A key-value store that stores keys in files.

This kv stores keys as files in a directory. Note that the directory must exist.

Caveats

This kv has the following caveats:

  • It doesn't perform a sync operation after every set/delete.
  • It doesn't create multi-level directories, e.g., fi/le/name, to improve filesystem lookups.

Consider using it when you want to audit which keys are created using external tools, such as ls, cat.

Methods

impl FileCave[src]

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

Create a new instance.

Check if the provided path is a directory and that it exists.

Trait Implementations

impl Cave for FileCave[src]

impl Debug for FileCave[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.