pub trait CellConductorApiT: Send + Sync {
    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
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: '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
        Self: 'async_trait,
        'life0: 'async_trait
; fn keystore(&self) -> &MetaLairClient; fn signal_broadcaster(&self) -> SignalBroadcaster; 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
        Self: 'async_trait,
        'life0: 'async_trait
; }
Expand description

The “internal” Conductor API interface, for a Cell to talk to its calling Conductor.

Required Methods§

Get this cell id

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.

Make a request to the DPKI service running for this Conductor. TODO: decide on actual signature

Request access to this conductor’s keystore

Access the broadcast Sender which will send a Signal across every attached app interface

Get a Dna from the RibosomeStore

Get the Dna of this cell from the RibosomeStore

Get the RealRibosome of this cell from the RibosomeStore

Get a Zome from this cell’s Dna

source

fn get_entry_def(&self, key: &EntryDefBufferKey) -> Option<EntryDef>

Get a EntryDef from the EntryDefBufferKey

Turn this into a call zome handle

Get an OwnedPermit to the post commit task.

Implementors§

The “internal” Conductor API interface, for a Cell to talk to its calling Conductor.