Trait holochain::prelude::ChainHeadCoordinatorExt
source · pub trait ChainHeadCoordinatorExt: 'static + Send + Sync + ChainHeadCoordinator<Item = SignedHashed<Action>> {
// Required method
fn signing_info(&self) -> (MetaLairClient, HoloHash<Agent>);
// Provided methods
fn add_records(
self: Arc<Self, Global>,
records: Vec<Record<SignedHashed<Action>>, Global>
) -> MustBoxFuture<'static, Result<(), ChcError>> ⓘ { ... }
fn get_record_data(
self: Arc<Self, Global>,
since_hash: Option<HoloHash<Action>>
) -> MustBoxFuture<'static, Result<Vec<Record<SignedHashed<Action>>, Global>, ChcError>> ⓘ { ... }
fn head(
self: Arc<Self, Global>
) -> MustBoxFuture<'static, Result<Option<HoloHash<Action>>, ChcError>> ⓘ { ... }
}
Expand description
Add some convenience methods to the CHC trait
Required Methods§
sourcefn signing_info(&self) -> (MetaLairClient, HoloHash<Agent>)
fn signing_info(&self) -> (MetaLairClient, HoloHash<Agent>)
Get info necessary for signing
Provided Methods§
sourcefn add_records(
self: Arc<Self, Global>,
records: Vec<Record<SignedHashed<Action>>, Global>
) -> MustBoxFuture<'static, Result<(), ChcError>> ⓘ
fn add_records( self: Arc<Self, Global>, records: Vec<Record<SignedHashed<Action>>, Global> ) -> MustBoxFuture<'static, Result<(), ChcError>> ⓘ
More convenient way to call add_records_request