Struct wasmbus_rpc::core::ActorSender
source · [−]pub struct ActorSender<T: Transport> { /* private fields */ }
Expand description
ActorSender sends messages to a Actor service Actor service client for sending Actor messages
Implementations
sourceimpl<T: Transport> ActorSender<T>
impl<T: Transport> ActorSender<T>
pub fn set_timeout(&self, interval: Duration)
sourceimpl<'send> ActorSender<ProviderTransport<'send>>
impl<'send> ActorSender<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
sourceimpl<T: Transport + Sync + Send> Actor for ActorSender<T>
impl<T: Transport + Sync + Send> Actor for ActorSender<T>
sourcefn health_request<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
arg: &'life2 HealthCheckRequest
) -> Pin<Box<dyn Future<Output = RpcResult<HealthCheckResponse>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn health_request<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
arg: &'life2 HealthCheckRequest
) -> Pin<Box<dyn Future<Output = RpcResult<HealthCheckResponse>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Perform health check. Called at regular intervals by host
Auto Trait Implementations
impl<T> RefUnwindSafe for ActorSender<T> where
T: RefUnwindSafe,
impl<T> Send for ActorSender<T>
impl<T> Sync for ActorSender<T> where
T: Sync,
impl<T> Unpin for ActorSender<T> where
T: Unpin,
impl<T> UnwindSafe for ActorSender<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more