linera_core::worker

Trait ProcessableCertificate

Source
pub trait ProcessableCertificate:
    CertificateValue
    + Sized
    + 'static
    + Send {
    // Required method
    fn process_certificate<S: Storage + Clone + Send + Sync + 'static>(
        worker: &WorkerState<S>,
        certificate: GenericCertificate<Self>,
    ) -> impl Future<Output = Result<(ChainInfoResponse, NetworkActions), WorkerError>> + Send;
}

Required Methods§

Source

fn process_certificate<S: Storage + Clone + Send + Sync + 'static>( worker: &WorkerState<S>, certificate: GenericCertificate<Self>, ) -> impl Future<Output = Result<(ChainInfoResponse, NetworkActions), WorkerError>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ProcessableCertificate for ConfirmedBlock

Source§

impl ProcessableCertificate for Timeout

Source§

impl ProcessableCertificate for ValidatedBlock

Implementors§