pub struct TestingSender<T: Transport> { /* private fields */ }Expand description
TestingSender sends messages to a Testing service Test api for testable actors and providers client for sending Testing messages
Implementations§
source§impl<T: Transport> TestingSender<T>
impl<T: Transport> TestingSender<T>
pub fn set_timeout(&self, interval: Duration)
source§impl<'send> TestingSender<ProviderTransport<'send>>
impl<'send> TestingSender<ProviderTransport<'send>>
sourcepub fn for_actor(ld: &'send LinkDefinition) -> Self
pub fn for_actor(ld: &'send LinkDefinition) -> Self
Constructs a Sender using an actor’s LinkDefinition, Uses the provider’s HostBridge for rpc
Trait Implementations§
source§impl<T: Clone + Transport> Clone for TestingSender<T>
impl<T: Clone + Transport> Clone for TestingSender<T>
source§fn clone(&self) -> TestingSender<T>
fn clone(&self) -> TestingSender<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<T: Transport + Sync + Send> Testing for TestingSender<T>
impl<T: Transport + Sync + Send> Testing for TestingSender<T>
source§fn start<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
arg: &'life2 TestOptions
) -> Pin<Box<dyn Future<Output = RpcResult<TestResults>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn start<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, ctx: &'life1 Context, arg: &'life2 TestOptions ) -> Pin<Box<dyn Future<Output = RpcResult<TestResults>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
Begin tests
fn foo<'life0, 'life1, 'async_trait>( &'life0 self, ctx: &'life1 Context ) -> Pin<Box<dyn Future<Output = RpcResult<SampleUnion>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
source§fn contract_id() -> &'static str
fn contract_id() -> &'static str
returns the capability contract id for this interface