[][src]Struct exonum::storage::DbOptions

pub struct DbOptions {
    pub max_open_files: Option<i32>,
    pub create_if_missing: bool,
}

Options for the database.

These parameters apply to the underlying database of Exonum, currently RocksDB.

Fields

max_open_files: Option<i32>

Number of open files that can be used by the database.

The underlying database opens multiple files during operation. If your system has a limit on the number of files which can be open simultaneously, you can adjust this option to match the limit. Note, that limiting the number of simultaneously open files might slow down the speed of database operation.

Defaults to None, meaning that the number of open files is unlimited.

create_if_missing: bool

An option to indicate whether the system should create a database or not, if it's missing.

This option applies to the cases when a node was switched off and is on again. If the database cannot be found at the indicated path and this option is switched on, a new database will be created at that path and blocks will be included therein.

Defaults to true.

Trait Implementations

impl Copy for DbOptions
[src]

impl Default for DbOptions
[src]

impl Clone for DbOptions
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for DbOptions
[src]

impl<'de> Deserialize<'de> for DbOptions
[src]

impl Serialize for DbOptions
[src]

Auto Trait Implementations

impl Send for DbOptions

impl Sync for DbOptions

Blanket Implementations

impl<T> SerializeContent for T where
    T: Serialize
[src]

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> Erased for T

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T> Same for T

type Output = T

Should always be Self