pub struct FreezerFilesBuilder { /* private fields */ }
Expand description

Freezer factory, which can be used in order to configure the properties of a new freezer.

Implementations

Generates the base configuration for a new freezer instance

Sets the max size of the file (in bytes) for the new freezer.

Sets the the limit of opened files for the new freezer.

Panics

Panics when limit <= 1, meaning freezer must open at least 2 files.

Sets the compression enable for the new freezer.

Creates the freezer with the options configured in this builder.

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.

Calls U::from(self).

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

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.