pub trait Database: Send + Sync {
// Required methods
fn store_candidate_block<'life0, 'async_trait>(
&'life0 mut self,
b: Block,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn store_validation_result<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
ch: &'life1 ConsensusHeader,
vr: &'life2 ValidationResult,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn get_last_iter<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = (Hash, u8)> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn store_last_iter<'life0, 'async_trait>(
&'life0 mut self,
data: (Hash, u8),
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Required Methods§
fn store_candidate_block<'life0, 'async_trait>(
&'life0 mut self,
b: Block,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn store_validation_result<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
ch: &'life1 ConsensusHeader,
vr: &'life2 ValidationResult,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_last_iter<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = (Hash, u8)> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn store_last_iter<'life0, 'async_trait>(
&'life0 mut self,
data: (Hash, u8),
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".