pub struct EventDispatcher<E> { /* private fields */ }
Implementations§
Source§impl<E: 'static> EventDispatcher<E>
impl<E: 'static> EventDispatcher<E>
pub fn new() -> EventDispatcher<E>
pub fn register_event<Ev: 'static + Event<E>>( &mut self, interceptors: Vec<Box<dyn Interceptor<Error = E>>>, )
pub fn dispatch<Ev: 'static + Event<E>>( &self, event: Ev, ) -> impl Future<Item = Context<E>>
Auto Trait Implementations§
impl<E> Freeze for EventDispatcher<E>
impl<E> !RefUnwindSafe for EventDispatcher<E>
impl<E> !Send for EventDispatcher<E>
impl<E> !Sync for EventDispatcher<E>
impl<E> Unpin for EventDispatcher<E>
impl<E> !UnwindSafe for EventDispatcher<E>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more