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