pub struct EventDispatcher(/* private fields */);Expand description
A handle for dispatching events that may become invalid under the same
conditions as Context.
In asynchronous scenarios, its validity is difficult to predict. Therefore, all APIs on this type are safe to call, but their execution results cannot be guaranteed or reliably observed.
Implementations§
Trait Implementations§
Source§impl Clone for EventDispatcher
impl Clone for EventDispatcher
Source§fn clone(&self) -> EventDispatcher
fn clone(&self) -> EventDispatcher
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EventDispatcher
impl Debug for EventDispatcher
impl Copy for EventDispatcher
impl Send for EventDispatcher
Auto Trait Implementations§
impl Freeze for EventDispatcher
impl RefUnwindSafe for EventDispatcher
impl !Sync for EventDispatcher
impl Unpin for EventDispatcher
impl UnsafeUnpin for EventDispatcher
impl UnwindSafe for EventDispatcher
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