pub trait CellConductorReadHandleT: Send + Sync {
fn cell_id(&self) -> &CellId;
fn call_zome<'life0, 'async_trait>(
&'life0 self,
call: ZomeCall,
workspace_lock: SourceChainWorkspace
) -> 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>;
fn get_entry_def(&self, key: &EntryDefBufferKey) -> Option<EntryDef>;
fn find_cell_with_role_alongside_cell<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
cell_id: &'life1 CellId,
role_id: &'life2 AppRoleId
) -> Pin<Box<dyn Future<Output = ConductorResult<Option<CellId>>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
}
Expand description
A minimal set of functionality needed from the conductor by host functions.
Required Methods
sourcefn call_zome<'life0, 'async_trait>(
&'life0 self,
call: ZomeCall,
workspace_lock: SourceChainWorkspace
) -> 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: SourceChainWorkspace
) -> Pin<Box<dyn Future<Output = ConductorApiResult<ZomeCallResult>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Invoke a zome function on a Cell
sourcefn get_zome(
&self,
dna_hash: &DnaHash,
zome_name: &ZomeName
) -> ConductorApiResult<Zome>
fn get_zome(
&self,
dna_hash: &DnaHash,
zome_name: &ZomeName
) -> ConductorApiResult<Zome>
Get a zome from this cell’s Dna
sourcefn get_entry_def(&self, key: &EntryDefBufferKey) -> Option<EntryDef>
fn get_entry_def(&self, key: &EntryDefBufferKey) -> Option<EntryDef>
Get a EntryDef
from the EntryDefBufferKey
sourcefn find_cell_with_role_alongside_cell<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
cell_id: &'life1 CellId,
role_id: &'life2 AppRoleId
) -> Pin<Box<dyn Future<Output = ConductorResult<Option<CellId>>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn find_cell_with_role_alongside_cell<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
cell_id: &'life1 CellId,
role_id: &'life2 AppRoleId
) -> Pin<Box<dyn Future<Output = ConductorResult<Option<CellId>>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Find the first cell ID across all apps the given cell id is in that is assigned to the given role.