Trait HandleMut

Source
pub trait HandleMut {
    type EventType: Event;

    // Required method
    fn handle_mut(&mut self, event: Self::EventType);
}
Expand description

Trait for an object that can subscribe to a producer for specific events and mutate itself in its handler function.

Required Associated Types§

Required Methods§

Source

fn handle_mut(&mut self, event: Self::EventType)

Implementors§