pub trait DecideSink:
Send
+ Sync
+ Debug {
// Required methods
fn append<'life0, 'async_trait>(
&'life0 self,
info: BlockInfo<SeqTypes>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn block_height<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Required Methods§
fn append<'life0, 'async_trait>(
&'life0 self,
info: BlockInfo<SeqTypes>,
) -> Pin<Box<dyn Future<Output = Result<()>> + 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".
Implementations on Foreign Types§
Source§impl DecideSink for NullEventConsumer
Without a query module there is nowhere to store decided blocks, so a node that hands them
here fails on the first one instead of reporting progress it never persisted.
impl DecideSink for NullEventConsumer
Without a query module there is nowhere to store decided blocks, so a node that hands them here fails on the first one instead of reporting progress it never persisted.