Struct cask::Cask [] [src]

pub struct Cask { /* fields omitted */ }

An handle to a Cask database.

This handle can be "cheaply" cloned and safely shared between threads. Casks cannot be used concurrently by separate processes and this is ensured by using a file lock in the Cask dir.

Methods

impl Cask
[src]

Opens/creates a new Cask.

Trigger Cask log compaction.

Returns the value corresponding to the key, if any.

Inserts a key-value pair into the map.

Removes a key from the map.

Trait Implementations

impl Clone for Cask
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Drop for Cask
[src]

A method called when the value goes out of scope. Read more