pub trait CallbackSend<M>: Display + Debug
where M: Messenger,
{ // Required method fn on_sent(&self, con_id: &ConId, msg: &<M as Messenger>::SendT); }
Expand description

Trait for callbacks that wish to get all sent messages.

Required Methods§

source

fn on_sent(&self, con_id: &ConId, msg: &<M as Messenger>::SendT)

Will be called after message is serialized and sent.

Implementors§

source§

impl<M> CallbackSend<M> for ChainCallback<M>
where M: Messenger,

source§

impl<M> CallbackSend<M> for CounterCallback<M>
where M: Messenger,

source§

impl<M> CallbackSend<M> for DevNullCallback<M>
where M: Messenger,

source§

impl<M> CallbackSend<M> for LoggerCallback<M>
where M: Messenger,

source§

impl<M, INTO, S> CallbackSend<M> for StoreCallback<M, INTO, S>
where M: Messenger, S: Storage<INTO>, INTO: for<'s> From<&'s <M as Messenger>::RecvT> + for<'s> From<&'s <M as Messenger>::SendT> + Debug + Send + Sync + 'static,