Trait serai_coordinator::tributary::db::DbTxn
source · pub trait DbTxn: Send + Get {
// Required methods
fn put(&mut self, key: impl AsRef<[u8]>, value: impl AsRef<[u8]>);
fn del(&mut self, key: impl AsRef<[u8]>);
fn commit(self);
}
Expand description
An atomic database operation.
Required Methods§
fn put(&mut self, key: impl AsRef<[u8]>, value: impl AsRef<[u8]>)
fn del(&mut self, key: impl AsRef<[u8]>)
fn commit(self)
Object Safety§
This trait is not object safe.