pub struct Database {
    pub auto_repair: bool,
    pub auto_flush: bool,
    pub write_modified_only: bool,
    pub timeout: Duration,
    pub lock_ex: bool,
    pub auto_bak: u64,
    pub skip_bak: Vec<String>,
    pub strict_schema: bool,
    /* private fields */
}

Fields

auto_repair: boolauto_flush: boolwrite_modified_only: booltimeout: Durationlock_ex: boolauto_bak: u64skip_bak: Vec<String>strict_schema: bool

Implementations

Errors

Will return Err if the database is already open or the format is unknown

Errors

Will return Err if the database is already open

Errors

Will return Err if the database is already open

Errors

Will return Err on I/O errors or if the engine is not initialized

Errors

Will return errors if the database is not opened or on I/O errors

Errors

Will return Err on I/O errors

Errors

Will return Err if the database is not open

Panics

Will panic on internal errors

Errors

Will return Err on invalid property or value

Errors

Will return Err on I/O errors

Errors

Will return Err on I/O errors

Errors

Will return Err on I/O errors

Errors

Will return Err on I/O errors

Errors

Will return Err on I/O errors

Errors

Will return Err if the key is not found and on I/O errors

Panics

Will panic on internal errors

Errors

Will return Err if the key is not found and on I/O errors

Errors

Will return Err on I/O errors

Get key field

field may contain a simple path (e.g. field/subfield/subsubfield)

Errors

Will return Err if the key is not found, on I/O or serialization errors

Set key field

field may contain a simple path (e.g. field/subfield/subsubfield)

Errors

Will return Err on I/O or serialization errors

Panics

Will panic on internal serde errors

Delete key field

field may contain a simple path (e.g. field/subfield/subsubfield)

Errors

Will return Err on I/O or serialization errors

Errors

Will return Err on I/O or serialization errors

Errors

Will return Err on I/O errors

Errors

Will return Err on I/O errors

Errors

Will return Err if the key is not found or is unable to be copied

Errors

Will return Err if the key is not found, is not numeric or I/O error occured

Errors

Will return Err if the key is not found, is not numeric or I/O error occured

Errors

Will return Err if the key is not found or is unable to be renamed

Errors

Will return Err on I/O errors

Panics

Will panic on internal path errors

Errors

Will return Err on I/O errors

Panics

Will panic on internal path errors

Errors

Will return Err if keys are unable to be read

Errors

Will return Err if key is not found or unable to be read

Trait Implementations

Returns the “default value” for a type. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.