pub trait JustificationSubmissions<J: Justification>: Clone + Send + 'static {
    type Error: Display;

    // Required method
    fn submit(
        &mut self,
        justification: J::Unverified
    ) -> Result<(), Self::Error>;
}
Expand description

An interface for submitting additional justifications to the justification sync. Chiefly ones created by ABFT, but others will also be handled appropriately. The block corresponding to the submitted Justification MUST be obtained and imported into the Substrate database by the user, as soon as possible.

Required Associated Types§

Required Methods§

source

fn submit(&mut self, justification: J::Unverified) -> Result<(), Self::Error>

Submit a justification to the underlying justification sync.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<J: Justification> JustificationSubmissions<J> for UnboundedSender<J::Unverified>

§

type Error = TrySendError<<J as Justification>::Unverified>

source§

fn submit(&mut self, justification: J::Unverified) -> Result<(), Self::Error>

Implementors§