Struct holochain::conductor::api::CellConductorApi [−][src]
pub struct CellConductorApi { /* fields omitted */ }
Expand description
The concrete implementation of CellConductorApiT, which is used to give Cells an API for calling back to their [Conductor].
Implementations
Instantiate from a Conductor reference and a CellId to identify which Cell this API instance is associated with
Trait Implementations
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 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. Read more
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 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 Read more
Request access to this conductor’s keystore
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 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 Read more
Get a Zome from this cell’s Dna
Get a EntryDef from the [EntryDefBuf]
Turn this into a call zome handle
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
Auto Trait Implementations
impl !RefUnwindSafe for CellConductorApi
impl Send for CellConductorApi
impl Sync for CellConductorApi
impl Unpin for CellConductorApi
impl !UnwindSafe for CellConductorApi
Blanket Implementations
fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
TODO: once 1.33.0 is the minimum supported compiler version, remove Any::type_id_compat and use StdAny::type_id instead. https://github.com/rust-lang/rust/issues/27745 Read more
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more