pub struct PreparedRun { /* private fields */ }Expand description
Fully prepared run payload ready for execution.
This separates request preprocessing from stream execution so preprocessing can be unit-tested deterministically.
Implementations§
Source§impl PreparedRun
impl PreparedRun
Sourcepub fn run_identity(&self) -> &RunIdentity
pub fn run_identity(&self) -> &RunIdentity
Strongly typed identity for the prepared run.
Sourcepub fn with_cancellation_token(self, token: RunCancellationToken) -> Self
pub fn with_cancellation_token(self, token: RunCancellationToken) -> Self
Attach a cooperative cancellation token for this prepared run.
This keeps loop cancellation wiring outside protocol/UI layers: transport code can own token lifecycle and inject it before execution.
Auto Trait Implementations§
impl !Freeze for PreparedRun
impl !RefUnwindSafe for PreparedRun
impl Send for PreparedRun
impl Sync for PreparedRun
impl Unpin for PreparedRun
impl !UnwindSafe for PreparedRun
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