pub struct SteerInbox { /* private fields */ }Expand description
Mid-run steering inbox: ParentFrame::Message texts arriving while a run is
active. Executors that support in-band steering admit them at a safe point
(the engine’s round boundary); others may simply ignore the inbox.
Implementations§
Source§impl SteerInbox
impl SteerInbox
Sourcepub fn channel() -> (UnboundedSender<SteerMessage>, Self)
pub fn channel() -> (UnboundedSender<SteerMessage>, Self)
Create a sender + inbox pair (the transport holds the sender).
Sourcepub fn disconnected() -> Self
pub fn disconnected() -> Self
An already-closed inbox (for tests / executors that don’t steer).
Sourcepub async fn recv(&mut self) -> Option<String>
pub async fn recv(&mut self) -> Option<String>
Next steering message, or None once the run’s sender is gone.
Sourcepub async fn wait_initial_release(
&mut self,
request: &InitialInputReleaseRequest,
cancel: &CancellationToken,
events: &EventSink,
) -> Result<DateTime<Utc>, String>
pub async fn wait_initial_release( &mut self, request: &InitialInputReleaseRequest, cancel: &CancellationToken, events: &EventSink, ) -> Result<DateTime<Utc>, String>
Wait before SDK admission. Exact unexpired replies from this inbox’s completed barriers are duplicates; every other mismatched control fails.
Sourcepub async fn recv_message(&mut self) -> Option<SteerMessage>
pub async fn recv_message(&mut self) -> Option<SteerMessage>
Receive the typed steering value. Runtime-backed workers use this path so SessionInbox envelopes never collapse into ad-hoc text.
Auto Trait Implementations§
impl Freeze for SteerInbox
impl RefUnwindSafe for SteerInbox
impl Send for SteerInbox
impl Sync for SteerInbox
impl Unpin for SteerInbox
impl UnsafeUnpin for SteerInbox
impl UnwindSafe for SteerInbox
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