Trait AnchorBuilder

Source
pub trait AnchorBuilder {
    // Required method
    fn build<'life0, 'async_trait, B>(
        &'life0 self,
        block_id: B,
    ) -> Pin<Box<dyn Future<Output = Result<Anchor, HostError>> + Send + 'async_trait>>
       where B: 'async_trait + Into<BlockId> + Send,
             Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Abstracts Anchor creation.

Required Methods§

Source

fn build<'life0, 'async_trait, B>( &'life0 self, block_id: B, ) -> Pin<Box<dyn Future<Output = Result<Anchor, HostError>> + Send + 'async_trait>>
where B: 'async_trait + Into<BlockId> + Send, Self: 'async_trait, 'life0: '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.

Implementors§

Source§

impl<P: Provider<AnyNetwork>> AnchorBuilder for BeaconAnchorBuilder<P, ConsensusBeaconAnchor>

Source§

impl<P: Provider<AnyNetwork>> AnchorBuilder for BeaconAnchorBuilder<P, Eip4788BeaconAnchor>

Source§

impl<P: Provider<AnyNetwork>> AnchorBuilder for ChainedBeaconAnchorBuilder<P>

Source§

impl<P: Provider<AnyNetwork>> AnchorBuilder for HeaderAnchorBuilder<P>