mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-06-01 10:43:39 -07:00
20 lines
402 B
Rust
20 lines
402 B
Rust
use brk_core::{Height, Result, Version};
|
|
|
|
pub trait AnyStore {
|
|
fn commit(&mut self, height: Height) -> Result<()>;
|
|
|
|
fn persist(&self) -> Result<()>;
|
|
|
|
fn reset(&mut self) -> Result<()>;
|
|
|
|
fn name(&self) -> &'static str;
|
|
|
|
fn height(&self) -> Option<Height>;
|
|
|
|
fn has(&self, height: Height) -> bool;
|
|
|
|
fn needs(&self, height: Height) -> bool;
|
|
|
|
fn version(&self) -> Version;
|
|
}
|