Struct holochain::conductor::api::MockCellConductorApi [−][src]
pub struct MockCellConductorApi { /* fields omitted */ }
Implementations
pub fn sync_call_zome(
&self,
cell_id: &CellId,
call: ZomeCall
) -> ConductorApiResult<ZomeCallResult>
pub fn sync_get_zome(
&self,
dna_hash: &DnaHash,
zome_name: &ZomeName
) -> ConductorApiResult<Zome>
Create an Expectation
for mocking the cell_id
method
Create an Expectation
for mocking the sync_call_zome
method
Create an Expectation
for mocking the sync_dpki_request
method
Create an Expectation
for mocking the mock_keystore
method
Create an Expectation
for mocking the mock_signal_broadcaster
method
Create an Expectation
for mocking the sync_get_dna
method
Create an Expectation
for mocking the sync_get_this_dna
method
Create an Expectation
for mocking the sync_get_zome
method
Create an Expectation
for mocking the sync_get_entry_def
method
Create an Expectation
for mocking the into_call_zome_handle
method
Create an Expectation
for mocking the post_commit_permit
method
Validate that all current expectations for all methods have been satisfied, and discard them.
Create a new mock object with no expectations.
This method will not be generated if the real struct
already has a new
method. However, it will be
generated if the struct implements a trait with a new
method. The trait’s new
method can still be called
like <MockX as TraitY>::new
👎 Deprecated since 0.9.0: Deprecated mock! syntax. Instead of “trait X”, write “impl X for Y”. See PR #205
Deprecated mock! syntax. Instead of “trait X”, write “impl X for Y”. See PR #205
Create an Expectation
for mocking the clone
method
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 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.
Auto Trait Implementations
impl !RefUnwindSafe for MockCellConductorApi
impl Send for MockCellConductorApi
impl Sync for MockCellConductorApi
impl Unpin for MockCellConductorApi
impl !UnwindSafe for MockCellConductorApi
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