Struct indradb::MemoryDatastore[][src]

pub struct MemoryDatastore { /* fields omitted */ }

An in-memory datastore.

Implementations

impl MemoryDatastore[src]

pub fn read<P: Into<PathBuf>>(
    path: P
) -> StdResult<MemoryDatastore, BincodeError>
[src]

Reads a persisted image from disk. Calls to sync will overwrite the file at the specified path.

Arguments

  • path: The path to the persisted image.

pub fn create<P: Into<PathBuf>>(
    path: P
) -> StdResult<MemoryDatastore, BincodeError>
[src]

Creates a new datastore. Calls to sync will overwrite the file at the specified path, but as opposed to read, this will not read the file first.

Arguments

  • path: The path to the persisted image.

Trait Implementations

impl Clone for MemoryDatastore[src]

impl Datastore for MemoryDatastore[src]

type Trans = MemoryTransaction

impl Debug for MemoryDatastore[src]

impl Default for MemoryDatastore[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,