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

Threadsafe API for blooms database.

Warning

This database does not guarantee atomic writes.

Implementations

Creates new database handle.

Arguments
  • path - database directory

Closes the inner database

Reopens database at the same location.

Inserts one or more blooms into database.

Arguments
  • from - index of the first bloom that needs to be inserted
  • blooms - iterator over blooms

Returns indexes of all headers matching given bloom in a specified range.

Arguments
  • from - index of the first bloom that needs to be checked
  • to - index of the last bloom that needs to be checked (inclusive range)
  • blooms - searched pattern

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.