Struct consensus_notifications::ConsensusNotifier [−][src]
pub struct ConsensusNotifier { /* fields omitted */ }Expand description
The consensus component responsible for sending notifications and requests to state sync.
Note: When a ConsensusNotifier instance is created, state sync must take and listen to the receiver in the corresponding ConsensusNotificationListener.
Trait Implementations
fn notify_new_commit<'life0, 'async_trait>(
&'life0 self,
transactions: Vec<Transaction>,
reconfiguration_events: Vec<ContractEvent>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn notify_new_commit<'life0, 'async_trait>(
&'life0 self,
transactions: Vec<Transaction>,
reconfiguration_events: Vec<ContractEvent>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Notify state sync of newly committed transactions and reconfiguration events.
fn sync_to_target<'life0, 'async_trait>(
&'life0 self,
target: LedgerInfoWithSignatures
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn sync_to_target<'life0, 'async_trait>(
&'life0 self,
target: LedgerInfoWithSignatures
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Notify state sync to synchronize storage to the specified target.
Auto Trait Implementations
impl !RefUnwindSafe for ConsensusNotifier
impl Send for ConsensusNotifier
impl Sync for ConsensusNotifier
impl Unpin for ConsensusNotifier
impl !UnwindSafe for ConsensusNotifier
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self