referrerpolicy=no-referrer-when-downgrade
pub trait HeadersRelayer: RelayToRelayHeadersCliBridge {
    // Provided methods
    fn relay_headers<'async_trait>(
        data: RelayHeadersParams,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: Send + 'async_trait { ... }
    fn relay_header<'async_trait>(
        data: RelayHeaderParams,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: Send + 'async_trait { ... }
}
Expand description

Trait used for relaying headers between 2 chains.

Provided Methods§

source

fn relay_headers<'async_trait>( data: RelayHeadersParams, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Relay headers.

source

fn relay_header<'async_trait>( data: RelayHeaderParams, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Relay single header. No checks are made to ensure that transaction will succeed.

Object Safety§

This trait is not object safe.

Implementors§