Skip to main content

Handler

Trait Handler 

Source
pub trait Handler<Ep: EventpOps> {
    // Required method
    fn handle(&mut self, event: Event, eventp: Pinned<'_, Ep>);
}
Expand description

See module level docs for more information.

Required Methods§

Source

fn handle(&mut self, event: Event, eventp: Pinned<'_, Ep>)

Handle the triggered event

Implementors§

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (&mut Fd, Event), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(&mut Fd, Event),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (&mut Fd, Event, Interest), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(&mut Fd, Event, Interest),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (&mut Fd, Event, Interest, Pinned<'_, Ep>), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(&mut Fd, Event, Interest, Pinned<'_, Ep>),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (&mut Fd, Event, Pinned<'_, Ep>), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(&mut Fd, Event, Pinned<'_, Ep>),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (&mut Fd, Event, Pinned<'_, Ep>, Interest), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(&mut Fd, Event, Pinned<'_, Ep>, Interest),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (&mut Fd, Interest), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(&mut Fd, Interest),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (&mut Fd, Interest, Event), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(&mut Fd, Interest, Event),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (&mut Fd, Interest, Event, Pinned<'_, Ep>), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(&mut Fd, Interest, Event, Pinned<'_, Ep>),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (&mut Fd, Interest, Pinned<'_, Ep>), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(&mut Fd, Interest, Pinned<'_, Ep>),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (&mut Fd, Interest, Pinned<'_, Ep>, Event), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(&mut Fd, Interest, Pinned<'_, Ep>, Event),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (&mut Fd, Pinned<'_, Ep>), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(&mut Fd, Pinned<'_, Ep>),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (&mut Fd, Pinned<'_, Ep>, Event), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(&mut Fd, Pinned<'_, Ep>, Event),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (&mut Fd, Pinned<'_, Ep>, Event, Interest), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(&mut Fd, Pinned<'_, Ep>, Event, Interest),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (&mut Fd, Pinned<'_, Ep>, Interest), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(&mut Fd, Pinned<'_, Ep>, Interest),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (&mut Fd, Pinned<'_, Ep>, Interest, Event), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(&mut Fd, Pinned<'_, Ep>, Interest, Event),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (&mut Fd,), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(&mut Fd),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Event, &mut Fd), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Event, &mut Fd),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Event, &mut Fd, Interest), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Event, &mut Fd, Interest),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Event, &mut Fd, Interest, Pinned<'_, Ep>), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Event, &mut Fd, Interest, Pinned<'_, Ep>),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Event, &mut Fd, Pinned<'_, Ep>), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Event, &mut Fd, Pinned<'_, Ep>),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Event, &mut Fd, Pinned<'_, Ep>, Interest), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Event, &mut Fd, Pinned<'_, Ep>, Interest),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Event, Interest), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Event, Interest),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Event, Interest, &mut Fd), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Event, Interest, &mut Fd),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Event, Interest, &mut Fd, Pinned<'_, Ep>), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Event, Interest, &mut Fd, Pinned<'_, Ep>),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Event, Interest, Pinned<'_, Ep>), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Event, Interest, Pinned<'_, Ep>),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Event, Interest, Pinned<'_, Ep>, &mut Fd), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Event, Interest, Pinned<'_, Ep>, &mut Fd),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Event, Pinned<'_, Ep>), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Event, Pinned<'_, Ep>),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Event, Pinned<'_, Ep>, &mut Fd), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Event, Pinned<'_, Ep>, &mut Fd),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Event, Pinned<'_, Ep>, &mut Fd, Interest), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Event, Pinned<'_, Ep>, &mut Fd, Interest),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Event, Pinned<'_, Ep>, Interest), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Event, Pinned<'_, Ep>, Interest),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Event, Pinned<'_, Ep>, Interest, &mut Fd), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Event, Pinned<'_, Ep>, Interest, &mut Fd),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Event,), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Event),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Interest, &mut Fd), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Interest, &mut Fd),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Interest, &mut Fd, Event), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Interest, &mut Fd, Event),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Interest, &mut Fd, Event, Pinned<'_, Ep>), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Interest, &mut Fd, Event, Pinned<'_, Ep>),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Interest, &mut Fd, Pinned<'_, Ep>), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Interest, &mut Fd, Pinned<'_, Ep>),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Interest, &mut Fd, Pinned<'_, Ep>, Event), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Interest, &mut Fd, Pinned<'_, Ep>, Event),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Interest, Event), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Interest, Event),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Interest, Event, &mut Fd), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Interest, Event, &mut Fd),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Interest, Event, &mut Fd, Pinned<'_, Ep>), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Interest, Event, &mut Fd, Pinned<'_, Ep>),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Interest, Event, Pinned<'_, Ep>), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Interest, Event, Pinned<'_, Ep>),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Interest, Event, Pinned<'_, Ep>, &mut Fd), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Interest, Event, Pinned<'_, Ep>, &mut Fd),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Interest, Pinned<'_, Ep>), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Interest, Pinned<'_, Ep>),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Interest, Pinned<'_, Ep>, &mut Fd), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Interest, Pinned<'_, Ep>, &mut Fd),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Interest, Pinned<'_, Ep>, &mut Fd, Event), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Interest, Pinned<'_, Ep>, &mut Fd, Event),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Interest, Pinned<'_, Ep>, Event), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Interest, Pinned<'_, Ep>, Event),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Interest, Pinned<'_, Ep>, Event, &mut Fd), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Interest, Pinned<'_, Ep>, Event, &mut Fd),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Interest,), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Interest),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Pinned<'_, Ep>, &mut Fd), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Pinned<'_, Ep>, &mut Fd),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Pinned<'_, Ep>, &mut Fd, Event), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Pinned<'_, Ep>, &mut Fd, Event),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Pinned<'_, Ep>, &mut Fd, Event, Interest), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Pinned<'_, Ep>, &mut Fd, Event, Interest),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Pinned<'_, Ep>, &mut Fd, Interest), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Pinned<'_, Ep>, &mut Fd, Interest),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Pinned<'_, Ep>, &mut Fd, Interest, Event), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Pinned<'_, Ep>, &mut Fd, Interest, Event),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Pinned<'_, Ep>, Event), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Pinned<'_, Ep>, Event),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Pinned<'_, Ep>, Event, &mut Fd), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Pinned<'_, Ep>, Event, &mut Fd),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Pinned<'_, Ep>, Event, &mut Fd, Interest), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Pinned<'_, Ep>, Event, &mut Fd, Interest),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Pinned<'_, Ep>, Event, Interest), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Pinned<'_, Ep>, Event, Interest),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Pinned<'_, Ep>, Event, Interest, &mut Fd), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Pinned<'_, Ep>, Event, Interest, &mut Fd),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Pinned<'_, Ep>, Interest), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Pinned<'_, Ep>, Interest),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Pinned<'_, Ep>, Interest, &mut Fd), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Pinned<'_, Ep>, Interest, &mut Fd),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Pinned<'_, Ep>, Interest, &mut Fd, Event), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Pinned<'_, Ep>, Interest, &mut Fd, Event),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Pinned<'_, Ep>, Interest, Event), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Pinned<'_, Ep>, Interest, Event),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Pinned<'_, Ep>, Interest, Event, &mut Fd), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Pinned<'_, Ep>, Interest, Event, &mut Fd),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (Pinned<'_, Ep>,), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(Pinned<'_, Ep>),

Source§

impl<Ep, Fd, F> Handler<Ep> for TriSubscriber<Fd, (), F>
where Ep: EventpOps, Fd: AsFd, F: FnMut(),

Source§

impl<Ep: EventpOps> Handler<Ep> for Subscriber<Ep>

Available on crate feature remote-endpoint only.