Trait roopes::prelude::Handler

source ·
pub trait Handler<M> {
    // Required method
    fn handle(&self, message: &M);
}
Expand description

Defines a primitive interface which handles messages via borrowing.

Required Methods§

source

fn handle(&self, message: &M)

Receives a borrowed value.

Implementors§

source§

impl<C, M> Handler<M> for Lambda<C, M>where C: Delegate<M>,

source§

impl<D, M, H> Handler<M> for Hashable<D, M, H>where D: Handler<M>, H: Hash + Eq,

source§

impl<H, M> Handler<M> for SubscribingHandler<H, M>where H: Handler<M>,

source§

impl<M> Handler<M> for Heap<M>

source§

impl<P, M> Handler<M> for HandlingPublisher<P, M>where P: Publisher<M>,

source§

impl<T, H, TI, HI> Handler<TI> for TransformingHandler<T, H, TI, HI>where T: Transformer<TI, HI>, H: Handler<HI>,