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]

[src]

Opens/creates a new Cask.

[src]

Trigger Cask log compaction.

[src]

Returns the value corresponding to the key, if any.

[src]

Inserts a key-value pair into the map.

[src]

Removes a key from the map.

Trait Implementations

impl Clone for Cask
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Drop for Cask
[src]

[src]

Executes the destructor for this type. Read more