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.
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.