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§
sourcefn relay_headers<'async_trait>(
data: RelayHeadersParams,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
fn relay_headers<'async_trait>(
data: RelayHeadersParams,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
Relay headers.
sourcefn relay_header<'async_trait>(
data: RelayHeaderParams,
) -> 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,
Relay single header. No checks are made to ensure that transaction will succeed.
Object Safety§
This trait is not object safe.