Trait holochain::conductor::api::CellConductorReadHandleT [−][src]
pub trait CellConductorReadHandleT: Send + Sync {
fn cell_id(&self) -> &CellId;
fn call_zome<'life0, 'async_trait>(
&'life0 self,
call: ZomeCall,
workspace_lock: HostFnWorkspace
) -> Pin<Box<dyn Future<Output = ConductorApiResult<ZomeCallResult>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn get_zome(
&self,
dna_hash: &DnaHash,
zome_name: &ZomeName
) -> ConductorApiResult<Zome>;
}
Expand description
A handle that cn only call zome functions to avoid making write lock calls
Required methods
fn call_zome<'life0, 'async_trait>(
&'life0 self,
call: ZomeCall,
workspace_lock: HostFnWorkspace
) -> Pin<Box<dyn Future<Output = ConductorApiResult<ZomeCallResult>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn call_zome<'life0, 'async_trait>(
&'life0 self,
call: ZomeCall,
workspace_lock: HostFnWorkspace
) -> Pin<Box<dyn Future<Output = ConductorApiResult<ZomeCallResult>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Invoke a zome function on a Cell