Struct leveldb_rs::DBWriteOptions [] [src]

pub struct DBWriteOptions { /* fields omitted */ }

This structure represents options that can be used when writing to a LevelDB instance.

Methods

impl DBWriteOptions
[src]

Create and return a new DBWriteOptions instance. Returns None if the underlying library call returns a null pointer.

Set whether the write will be flushed to disk before the write is considered "complete". Essentially, if a write is performed without this value set, it has the same semantics as the write() syscall. If sync is set, the semantics are the same as a write() followed by a fsync() call.

The default value is false.

Trait Implementations

impl Drop for DBWriteOptions
[src]

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