Struct deltachat::events::EventEmitter
source · pub struct EventEmitter(Mutex<Receiver<Event>>);
Expand description
A receiver of events from a Context
.
See Context::get_event_emitter
to create an instance. If multiple instances are
created events emitted by the Context
will only be delivered to one of the
EventEmitter
s.
Tuple Fields§
§0: Mutex<Receiver<Event>>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for EventEmitter
impl !RefUnwindSafe for EventEmitter
impl Send for EventEmitter
impl Sync for EventEmitter
impl Unpin for EventEmitter
impl !UnwindSafe for EventEmitter
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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