pub trait BeaconAnchorKind: Sized {
// Required method
fn build_beacon_anchor_from_header<'life0, 'life1, 'async_trait, P>(
header: &'life0 Sealed<Header>,
field: BeaconBlockField,
beacon_anchor_builder: &'life1 BeaconAnchorBuilder<P, Self>,
) -> Pin<Box<dyn Future<Output = Result<(B256, BeaconAnchor), HostError>> + Send + 'async_trait>>
where P: 'async_trait + Provider<AnyNetwork>,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
Trait for different beacon anchor strategies.
Required Methods§
fn build_beacon_anchor_from_header<'life0, 'life1, 'async_trait, P>(
header: &'life0 Sealed<Header>,
field: BeaconBlockField,
beacon_anchor_builder: &'life1 BeaconAnchorBuilder<P, Self>,
) -> Pin<Box<dyn Future<Output = Result<(B256, BeaconAnchor), HostError>> + Send + 'async_trait>>where
P: 'async_trait + Provider<AnyNetwork>,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
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.