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 channel_with_control() -> (Self, UnboundedReceiver<Value>, UnboundedReceiver<ExecutorControl>)
pub fn channel_with_control() -> (Self, UnboundedReceiver<Value>, UnboundedReceiver<ExecutorControl>)
Create a sink with a control channel for protocol-level confirmations.
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.
Sourcepub fn emit(&self, event: Value)
pub fn emit(&self, event: Value)
Emit one event (serialized agent event). Dropped silently if the peer is gone.
Sourcepub fn confirm_session_message(
&self,
confirmation: SessionMessageAdmissionConfirmation,
)
pub fn confirm_session_message( &self, confirmation: SessionMessageAdmissionConfirmation, )
Confirm a forwarded SessionInbox message only after the executor has observed its durable local admitted receipt.
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