Trait serai_coordinator::db::Db
source · pub trait Db: 'static + Send + Sync + Clone + Get {
type Transaction<'a>: DbTxn;
// Required method
fn txn(&mut self) -> Self::Transaction<'_>;
// Provided method
fn key(
db_dst: &'static [u8],
item_dst: &'static [u8],
key: impl AsRef<[u8]>,
) -> Vec<u8> ⓘ { ... }
}
Expand description
A database supporting atomic operations.
Required Associated Types§
type Transaction<'a>: DbTxn
Required Methods§
fn txn(&mut self) -> Self::Transaction<'_>
Provided Methods§
Object Safety§
This trait is not object safe.