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
.
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.
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
.
Returns the "default value" for a type. Read more
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more
Serializes content of a transaction with the given serializer.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
impl<T> Clear for T where T: InitializableFromZeroed + ?Sized, | |
Completely overwrites this value.
impl<T> InitializableFromZeroed for T where T: Default, | |
Called to initialize a place to a valid value, after it is set to all-bits-zero. Read more