Trait holochain_types::chc::ChainHeadCoordinatorExt
source · pub trait ChainHeadCoordinatorExt: 'static + Send + Sync + ChainHeadCoordinator<Item = SignedActionHashed> {
// Required method
fn signing_info(&self) -> (MetaLairClient, AgentPubKey);
// Provided methods
fn add_records(
self: Arc<Self>,
records: Vec<Record>
) -> MustBoxFuture<'static, ChcResult<()>> { ... }
fn get_record_data(
self: Arc<Self>,
since_hash: Option<ActionHash>
) -> MustBoxFuture<'static, ChcResult<Vec<Record>>> { ... }
}
Expand description
Add some convenience methods to the CHC trait
Required Methods§
sourcefn signing_info(&self) -> (MetaLairClient, AgentPubKey)
fn signing_info(&self) -> (MetaLairClient, AgentPubKey)
Get info necessary for signing
Provided Methods§
sourcefn add_records(
self: Arc<Self>,
records: Vec<Record>
) -> MustBoxFuture<'static, ChcResult<()>>
fn add_records( self: Arc<Self>, records: Vec<Record> ) -> MustBoxFuture<'static, ChcResult<()>>
More convenient way to call add_records_request
sourcefn get_record_data(
self: Arc<Self>,
since_hash: Option<ActionHash>
) -> MustBoxFuture<'static, ChcResult<Vec<Record>>>
fn get_record_data( self: Arc<Self>, since_hash: Option<ActionHash> ) -> MustBoxFuture<'static, ChcResult<Vec<Record>>>
More convenient way to call get_record_data_request