Struct event_web::EventHandler [−][src]
pub struct EventHandler<T> where
T: Actor<Context = Context<T>> + Handler<LookupEvent> + Handler<NewEvent> + Handler<EditEvent> + Clone, { /* fields omitted */ }
Methods
impl<T> EventHandler<T> where
T: Actor<Context = Context<T>> + Handler<LookupEvent> + Handler<NewEvent> + Handler<EditEvent> + Clone,
[src]
impl<T> EventHandler<T> where
T: Actor<Context = Context<T>> + Handler<LookupEvent> + Handler<NewEvent> + Handler<EditEvent> + Clone,
pub fn new(handler: Addr<Syn, T>) -> Self
[src]
pub fn new(handler: Addr<Syn, T>) -> Self
pub fn notify(
&self,
event: Event,
id: String
) -> impl Future<Item = (), Error = FrontendError>
[src]
pub fn notify(
&self,
event: Event,
id: String
) -> impl Future<Item = (), Error = FrontendError>
Trait Implementations
impl<T: Clone> Clone for EventHandler<T> where
T: Actor<Context = Context<T>> + Handler<LookupEvent> + Handler<NewEvent> + Handler<EditEvent> + Clone,
[src]
impl<T: Clone> Clone for EventHandler<T> where
T: Actor<Context = Context<T>> + Handler<LookupEvent> + Handler<NewEvent> + Handler<EditEvent> + Clone,
fn clone(&self) -> EventHandler<T>
[src]
fn clone(&self) -> EventHandler<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<T> Send for EventHandler<T>
impl<T> Send for EventHandler<T>
impl<T> Sync for EventHandler<T>
impl<T> Sync for EventHandler<T>