Trait finality_relay::SourceClientBase
source · pub trait SourceClientBase<P: FinalityPipeline>: RelayClient {
type FinalityProofsStream: Stream<Item = P::FinalityProof> + Send + Unpin;
// Required method
fn finality_proofs<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Self::FinalityProofsStream, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Source client used in finality related loops.
Required Associated Types§
sourcetype FinalityProofsStream: Stream<Item = P::FinalityProof> + Send + Unpin
type FinalityProofsStream: Stream<Item = P::FinalityProof> + Send + Unpin
Stream of new finality proofs. The stream is allowed to miss proofs for some headers, even if those headers are mandatory.
Required Methods§
sourcefn finality_proofs<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Self::FinalityProofsStream, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn finality_proofs<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Self::FinalityProofsStream, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Subscribe to new finality proofs.
Object Safety§
This trait is not object safe.