pub trait CellConductorApiT: Send + Sync {
    // Required methods
    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 conductor_services(&self) -> ConductorServices;
    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§

source

fn cell_id(&self) -> &CellId

Get this cell id

source

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,

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.

source

fn conductor_services(&self) -> ConductorServices

Access to the conductor services

source

fn keystore(&self) -> &MetaLairClient

Request access to this conductor’s keystore

source

fn signal_broadcaster(&self) -> SignalBroadcaster

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

source

fn get_dna(&self, dna_hash: &DnaHash) -> Option<DnaFile>

Get a Dna from the RibosomeStore

source

fn get_this_dna(&self) -> ConductorApiResult<DnaFile>

Get the Dna of this cell from the RibosomeStore

source

fn get_this_ribosome(&self) -> ConductorApiResult<RealRibosome>

Get the RealRibosome of this cell from the RibosomeStore

source

fn get_zome( &self, dna_hash: &DnaHash, zome_name: &ZomeName ) -> ConductorApiResult<Zome>

Get a Zome from this cell’s Dna

source

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

Get a EntryDef from the EntryDefBufferKey

source

fn into_call_zome_handle(self) -> CellConductorReadHandle

Turn this into a call zome handle

source

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,

Get an OwnedPermit to the post commit task.

Implementors§