[][src]Struct rusty_leveldb::Options

pub struct Options {
    pub cmp: Rc<Box<dyn Cmp>>,
    pub env: Rc<Box<dyn Env>>,
    pub log: Option<Rc<RefCell<Logger>>>,
    pub create_if_missing: bool,
    pub error_if_exists: bool,
    pub paranoid_checks: bool,
    pub write_buffer_size: usize,
    pub max_open_files: usize,
    pub max_file_size: usize,
    pub block_cache: Rc<RefCell<Cache<Block>>>,
    pub block_size: usize,
    pub block_restart_interval: usize,
    pub compression_type: CompressionType,
    pub reuse_logs: bool,
    pub reuse_manifest: bool,
    pub filter_policy: Rc<Box<dyn FilterPolicy>>,
}

Options contains general parameters for a LevelDB instance. Most of the names are self-explanatory; the defaults are defined in the Default implementation.

Note: Compression is not yet implemented.

Fields

cmp: Rc<Box<dyn Cmp>>env: Rc<Box<dyn Env>>log: Option<Rc<RefCell<Logger>>>create_if_missing: boolerror_if_exists: boolparanoid_checks: boolwrite_buffer_size: usizemax_open_files: usizemax_file_size: usizeblock_cache: Rc<RefCell<Cache<Block>>>block_size: usizeblock_restart_interval: usizecompression_type: CompressionTypereuse_logs: boolreuse_manifest: boolfilter_policy: Rc<Box<dyn FilterPolicy>>

Trait Implementations

impl Clone for Options[src]

impl Default for Options[src]

Auto Trait Implementations

impl !RefUnwindSafe for Options

impl !Send for Options

impl !Sync for Options

impl Unpin for Options

impl !UnwindSafe for Options

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