pub struct EventSink { /* private fields */ }Expand description
Sink an executor emits events into; the transport forwards each as a ChildFrame::Event.
Implementations§
Source§impl EventSink
impl EventSink
Sourcepub fn channel() -> (Self, UnboundedReceiver<Value>)
pub fn channel() -> (Self, UnboundedReceiver<Value>)
Create a sink + the receiver the transport pumps to the wire.
Sourcepub fn with_host_bridge(self, bridge: HostBridge) -> Self
pub fn with_host_bridge(self, bridge: HostBridge) -> Self
Attach a host-callback bridge (the transport wires this for real runs).
Sourcepub fn host(&self) -> Option<&HostBridge>
pub fn host(&self) -> Option<&HostBridge>
The host-callback bridge, if this run was wired with one.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventSink
impl RefUnwindSafe for EventSink
impl Send for EventSink
impl Sync for EventSink
impl Unpin for EventSink
impl UnsafeUnpin for EventSink
impl UnwindSafe for EventSink
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