pub trait CellConductorApiT: Send + Sync + Sized {
fn cell_id(&self) -> &CellId;
fn call_zome<'life0, 'life1, 'async_trait>(
&'life0 self,
cell_id: &'life1 CellId,
call: ZomeCall
) -> Pin<Box<dyn Future<Output = ConductorApiResult<ZomeCallResult>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn dpki_request<'life0, 'async_trait>(
&'life0 self,
method: String,
args: String
) -> Pin<Box<dyn Future<Output = ConductorApiResult<String>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn keystore(&self) -> &MetaLairClient;
fn signal_broadcaster<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = SignalBroadcaster> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn get_dna(&self, dna_hash: &DnaHash) -> Option<DnaFile>;
fn get_this_dna(&self) -> ConductorApiResult<DnaFile>;
fn get_this_ribosome(&self) -> ConductorApiResult<RealRibosome>;
fn get_zome(
&self,
dna_hash: &DnaHash,
zome_name: &ZomeName
) -> ConductorApiResult<Zome>;
fn get_entry_def(&self, key: &EntryDefBufferKey) -> Option<EntryDef>;
fn into_call_zome_handle(self) -> CellConductorReadHandle;
fn post_commit_permit<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<OwnedPermit<PostCommitArgs>, SendError<()>>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
The “internal” Conductor API interface, for a Cell to talk to its calling Conductor.
Required Methods
sourcefn call_zome<'life0, 'life1, 'async_trait>(
&'life0 self,
cell_id: &'life1 CellId,
call: ZomeCall
) -> Pin<Box<dyn Future<Output = ConductorApiResult<ZomeCallResult>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn call_zome<'life0, 'life1, 'async_trait>(
&'life0 self,
cell_id: &'life1 CellId,
call: ZomeCall
) -> Pin<Box<dyn Future<Output = ConductorApiResult<ZomeCallResult>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Invoke a zome function on any cell in this conductor. A zome call on a different Cell than this one corresponds to a bridged call.
sourcefn dpki_request<'life0, 'async_trait>(
&'life0 self,
method: String,
args: String
) -> Pin<Box<dyn Future<Output = ConductorApiResult<String>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn dpki_request<'life0, 'async_trait>(
&'life0 self,
method: String,
args: String
) -> Pin<Box<dyn Future<Output = ConductorApiResult<String>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Make a request to the DPKI service running for this Conductor. TODO: decide on actual signature
sourcefn keystore(&self) -> &MetaLairClient
fn keystore(&self) -> &MetaLairClient
Request access to this conductor’s keystore
sourcefn signal_broadcaster<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = SignalBroadcaster> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn signal_broadcaster<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = SignalBroadcaster> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Access the broadcast Sender which will send a Signal across every attached app interface
sourcefn get_this_dna(&self) -> ConductorApiResult<DnaFile>
fn get_this_dna(&self) -> ConductorApiResult<DnaFile>
Get the Dna
of this cell from the RibosomeStore
sourcefn get_this_ribosome(&self) -> ConductorApiResult<RealRibosome>
fn get_this_ribosome(&self) -> ConductorApiResult<RealRibosome>
Get the RealRibosome
of this cell from the RibosomeStore
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 into_call_zome_handle(self) -> CellConductorReadHandle
fn into_call_zome_handle(self) -> CellConductorReadHandle
Turn this into a call zome handle
sourcefn post_commit_permit<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<OwnedPermit<PostCommitArgs>, SendError<()>>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn post_commit_permit<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<OwnedPermit<PostCommitArgs>, SendError<()>>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Get an OwnedPermit to the post commit task.
Implementors
impl CellConductorApiT for CellConductorApi
impl CellConductorApiT for MockCellConductorApiT
The “internal” Conductor API interface, for a Cell to talk to its calling Conductor.