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
pub const EVENT_CAPACITY: usize = 256
pub const CONTROL_CAPACITY: usize = 32
Sourcepub fn channel() -> (Self, Receiver<Value>)
pub fn channel() -> (Self, Receiver<Value>)
Create a sink + the receiver the transport pumps to the wire.
Sourcepub fn channel_with_control() -> (Self, Receiver<Value>, Receiver<ExecutorControl>)
pub fn channel_with_control() -> (Self, Receiver<Value>, Receiver<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 async fn emit(&self, event: Value)
pub async fn emit(&self, event: Value)
Emit one event with bounded producer backpressure. Transport QoS still decides whether a sequenced live batch can be dropped; durable events cannot accumulate without bound ahead of that transport or be lost here.
pub async fn request_initial_release( &self, request: InitialInputReleaseRequest, ) -> Result<(), String>
Sourcepub async fn confirm_session_message(
&self,
confirmation: SessionMessageAdmissionConfirmation,
)
pub async 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