pub trait Handler<Ctx> {
    // Required method
    fn handle_message(
        &self,
        cx: Ctx,
        msg: BrokerMessage,
    ) -> impl Future<Output = Result<Result<(), String>>> + Send;
}

Required Methods§

source

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.

Implementors§