pub struct EventSender<T: Send + 'static> { /* private fields */ }Expand description
A Send publishing handle for a composition-scoped EventStream.
Platform services publish events from whatever thread they run on — a JNI callback, a worker, a socket reader. The sender hops each event onto the UI thread through the runtime’s dispatcher and pushes it into the stream the composition is collecting, so no service and no application ever writes that hop again.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for EventSender<T>
impl<T> !UnwindSafe for EventSender<T>
impl<T> Freeze for EventSender<T>
impl<T> Send for EventSender<T>
impl<T> Sync for EventSender<T>
impl<T> Unpin for EventSender<T>
impl<T> UnsafeUnpin for EventSender<T>
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