pub struct DustData {
    pub config: DustDataConfig,
    pub cache: Arc<Mutex<Cache>>,
    pub lsm: Lsm,
}

Fields

config: DustDataConfigcache: Arc<Mutex<Cache>>lsm: Lsm

Implementations

Get a value with a key

Arguments
  • key: a key to search for
Returns
  • Some(bson::Document) if value was found returns a bson document

Insert a value with a key

Arguments
  • key: a key.
  • document: a bson document to insert

Delete a value with a key

Arguments
  • key: a key to search for and delete it.

Update a value with a key

Arguments
  • key: a key to search for and update it.
  • document: the new document to replace the old one.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.