Struct wasmcloud_interface_messaging::MessageSubscriberSender [−][src]
pub struct MessageSubscriberSender<T: Transport> { /* fields omitted */ }
Expand description
MessageSubscriberSender sends messages to a MessageSubscriber service The MessageSubscriber interface describes an actor interface that receives messages sent by the Messaging provider client for sending MessageSubscriber messages
Implementations
Constructs a Sender using an actor’s LinkDefinition, Uses the provider’s HostBridge for rpc
Trait Implementations
fn handle_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
arg: &'life2 SubMessage
) -> Pin<Box<dyn Future<Output = RpcResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn handle_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
arg: &'life2 SubMessage
) -> Pin<Box<dyn Future<Output = RpcResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
subscription handler
returns the capability contract id for this interface