Trait wasmcloud_runtime::capability::wrpc::exports::wasmcloud::messaging::handler::Handler
source · pub trait Handler<Ctx> {
// Required method
fn handle_message(
&self,
cx: Ctx,
msg: BrokerMessage,
) -> impl Future<Output = Result<Result<(), String>>> + Send;
}
Required Methods§
sourcefn handle_message(
&self,
cx: Ctx,
msg: BrokerMessage,
) -> impl Future<Output = Result<Result<(), String>>> + Send
fn handle_message( &self, cx: Ctx, msg: BrokerMessage, ) -> impl Future<Output = Result<Result<(), String>>> + Send
Callback handled to invoke a function when a message is received from a subscription
Object Safety§
This trait is not object safe.