pub struct CellConductorApi { /* private fields */ }Expand description
The concrete implementation of CellConductorApiT, which is used to give
Cells an API for calling back to their Conductor.
Implementations§
Source§impl CellConductorApi
impl CellConductorApi
Sourcepub fn new(conductor_handle: ConductorHandle, cell_id: CellId) -> Self
pub fn new(conductor_handle: ConductorHandle, cell_id: CellId) -> Self
Instantiate from a Conductor reference and a CellId to identify which Cell this API instance is associated with
Trait Implementations§
Source§impl CellConductorApiT for CellConductorApi
impl CellConductorApiT for CellConductorApi
Source§fn keystore(&self) -> &MetaLairClient
fn keystore(&self) -> &MetaLairClient
Request access to this conductor’s keystore
Source§fn get_dna_def(&self, cell_id: &CellId) -> Option<DnaDef>
fn get_dna_def(&self, cell_id: &CellId) -> Option<DnaDef>
Get a
DnaDef from the RibosomeStoreSource§fn get_this_ribosome(&self) -> ConductorApiResult<Ribosome>
fn get_this_ribosome(&self) -> ConductorApiResult<Ribosome>
Get the
Ribosome of this cell from the RibosomeStoreSource§fn get_zome(
&self,
cell_id: &CellId,
zome_name: &ZomeName,
) -> ConductorApiResult<Zome>
fn get_zome( &self, cell_id: &CellId, zome_name: &ZomeName, ) -> ConductorApiResult<Zome>
Get a
Zome from this cell’s DnaSource§fn get_entry_def(&self, key: &EntryDefBufferKey) -> Option<EntryDef>
fn get_entry_def(&self, key: &EntryDefBufferKey) -> Option<EntryDef>
Get a
EntryDef from the EntryDefBufferKeySource§fn into_call_zome_handle(self) -> CellConductorReadHandle
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,
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.
Source§impl CellConductorReadHandleT for CellConductorApi
impl CellConductorReadHandleT for CellConductorApi
Source§fn call_zome<'life0, 'async_trait>(
&'life0 self,
params: ZomeCallParams,
) -> Pin<Box<dyn Future<Output = ConductorApiResult<ZomeCallResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn call_zome<'life0, 'async_trait>(
&'life0 self,
params: ZomeCallParams,
) -> Pin<Box<dyn Future<Output = ConductorApiResult<ZomeCallResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Invoke a zome function on a Cell
Source§fn call_zome_with_workspace<'life0, 'async_trait>(
&'life0 self,
params: ZomeCallParams,
workspace_lock: SourceChainWorkspace,
) -> Pin<Box<dyn Future<Output = ConductorApiResult<ZomeCallResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn call_zome_with_workspace<'life0, 'async_trait>(
&'life0 self,
params: ZomeCallParams,
workspace_lock: SourceChainWorkspace,
) -> Pin<Box<dyn Future<Output = ConductorApiResult<ZomeCallResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Invoke a zome function on a Cell
Source§fn get_zome(
&self,
cell_id: &CellId,
zome_name: &ZomeName,
) -> ConductorApiResult<Zome>
fn get_zome( &self, cell_id: &CellId, zome_name: &ZomeName, ) -> ConductorApiResult<Zome>
Get a zome from this cell’s Dna
Source§fn get_entry_def(&self, key: &EntryDefBufferKey) -> Option<EntryDef>
fn get_entry_def(&self, key: &EntryDefBufferKey) -> Option<EntryDef>
Get a
EntryDef from the EntryDefBufferKeySource§fn witness_nonce_from_calling_agent<'life0, 'async_trait>(
&'life0 self,
agent: AgentPubKey,
nonce: Nonce256Bits,
expires: Timestamp,
) -> Pin<Box<dyn Future<Output = ConductorApiResult<WitnessNonceResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn witness_nonce_from_calling_agent<'life0, 'async_trait>(
&'life0 self,
agent: AgentPubKey,
nonce: Nonce256Bits,
expires: Timestamp,
) -> Pin<Box<dyn Future<Output = ConductorApiResult<WitnessNonceResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Try to put the nonce from a calling agent in the db. Fails with a stale result if a newer nonce exists.
Source§fn find_cell_with_role_alongside_cell<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
cell_id: &'life1 CellId,
role_name: &'life2 RoleName,
) -> Pin<Box<dyn Future<Output = ConductorResult<Option<CellId>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn find_cell_with_role_alongside_cell<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
cell_id: &'life1 CellId,
role_name: &'life2 RoleName,
) -> Pin<Box<dyn Future<Output = ConductorResult<Option<CellId>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Find the first cell ID across all apps the given cell id is in that
is assigned to the given role.
Source§fn block<'life0, 'async_trait>(
&'life0 self,
input: Block,
) -> Pin<Box<dyn Future<Output = HolochainP2pResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn block<'life0, 'async_trait>(
&'life0 self,
input: Block,
) -> Pin<Box<dyn Future<Output = HolochainP2pResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Expose block functionality to zomes.
Source§fn is_blocked<'life0, 'async_trait>(
&'life0 self,
input: BlockTargetId,
timestamp: Timestamp,
) -> Pin<Box<dyn Future<Output = ConductorResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn is_blocked<'life0, 'async_trait>(
&'life0 self,
input: BlockTargetId,
timestamp: Timestamp,
) -> Pin<Box<dyn Future<Output = ConductorResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Expose is_blocked functionality to zomes.
Source§fn find_app_containing_cell<'life0, 'life1, 'async_trait>(
&'life0 self,
cell_id: &'life1 CellId,
) -> Pin<Box<dyn Future<Output = ConductorResult<Option<InstalledApp>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn find_app_containing_cell<'life0, 'life1, 'async_trait>(
&'life0 self,
cell_id: &'life1 CellId,
) -> Pin<Box<dyn Future<Output = ConductorResult<Option<InstalledApp>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Find an installed app by one of its CellIds.
Source§fn get_init_properties<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ConductorResult<Option<InitProperties>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_init_properties<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ConductorResult<Option<InitProperties>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the init properties supplied for this cell’s role at install time.
Source§fn create_clone_cell<'life0, 'life1, 'async_trait>(
&'life0 self,
installed_app_id: &'life1 InstalledAppId,
payload: CreateCloneCellPayload,
) -> Pin<Box<dyn Future<Output = ConductorResult<ClonedCell>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_clone_cell<'life0, 'life1, 'async_trait>(
&'life0 self,
installed_app_id: &'life1 InstalledAppId,
payload: CreateCloneCellPayload,
) -> Pin<Box<dyn Future<Output = ConductorResult<ClonedCell>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Expose create_clone_cell functionality to zomes.
Source§fn disable_clone_cell<'life0, 'life1, 'async_trait>(
&'life0 self,
installed_app_id: &'life1 InstalledAppId,
payload: DisableCloneCellPayload,
) -> Pin<Box<dyn Future<Output = ConductorResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn disable_clone_cell<'life0, 'life1, 'async_trait>(
&'life0 self,
installed_app_id: &'life1 InstalledAppId,
payload: DisableCloneCellPayload,
) -> Pin<Box<dyn Future<Output = ConductorResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Expose disable_clone_cell functionality to zomes.
Source§fn enable_clone_cell<'life0, 'life1, 'async_trait>(
&'life0 self,
installed_app_id: &'life1 InstalledAppId,
payload: EnableCloneCellPayload,
) -> Pin<Box<dyn Future<Output = ConductorResult<ClonedCell>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn enable_clone_cell<'life0, 'life1, 'async_trait>(
&'life0 self,
installed_app_id: &'life1 InstalledAppId,
payload: EnableCloneCellPayload,
) -> Pin<Box<dyn Future<Output = ConductorResult<ClonedCell>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Expose enable_clone_cell functionality to zomes.
Source§fn delete_clone_cell<'life0, 'async_trait>(
&'life0 self,
payload: DeleteCloneCellPayload,
) -> Pin<Box<dyn Future<Output = ConductorResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_clone_cell<'life0, 'async_trait>(
&'life0 self,
payload: DeleteCloneCellPayload,
) -> Pin<Box<dyn Future<Output = ConductorResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Expose delete_clone_cell functionality to zomes.
Source§impl Clone for CellConductorApi
impl Clone for CellConductorApi
Source§fn clone(&self) -> CellConductorApi
fn clone(&self) -> CellConductorApi
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for CellConductorApi
impl !UnwindSafe for CellConductorApi
impl Freeze for CellConductorApi
impl Send for CellConductorApi
impl Sync for CellConductorApi
impl Unpin for CellConductorApi
impl UnsafeUnpin for CellConductorApi
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Upcastable for T
impl<T> Upcastable for T
Source§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
Source§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref