Struct blooms_db::Database[][src]

pub struct Database { /* fields omitted */ }

Threadsafe API for blooms database.

Warning

This database does not guarantee atomic writes.

Methods

impl Database
[src]

Creates new database handle.

Arguments

  • path - database directory

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

impl Send for Database

impl Sync for Database