Struct PendingRun
pub struct PendingRun {
pub call_id: String,
pub tool: String,
pub run: RunId,
pub model_wait: Option<ModelWait>,
}Expand description
A tool call that waits for a child run to finish.
One kind of PendingWait. The run is parked with a timer, and the call is
answered by the child’s adam.run.finished message, or, when the timer fires
first, by reading the child.
Fields§
§call_id: StringThe tool call the child’s result will be returned for.
tool: StringThe tool that started the child.
run: RunIdThe child run.
model_wait: Option<ModelWait>The model wait the child had when this run last looked (ADR 0067 decision 5), copied
from the child’s head: Some while the child is parked on the model. The run waits on an
until-woken child with no timer, as it waits on a question, and keeps its 60 s look at
a timer park. Cleared when the run forwards a resume to the child, and rewritten at the
next look. In the head, so a front reads it at /pending_wait/model_wait; absent from
state written before it existed, and not written while None.
Breaking: a new public field of a struct that is not #[non_exhaustive]: a
PendingRun built with a struct literal outside the workspace names it.
Trait Implementations§
§impl Clone for PendingRun
impl Clone for PendingRun
§fn clone(&self) -> PendingRun
fn clone(&self) -> PendingRun
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for PendingRun
impl Debug for PendingRun
§impl<'de> Deserialize<'de> for PendingRun
impl<'de> Deserialize<'de> for PendingRun
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PendingRun, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PendingRun, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl PartialEq for PendingRun
impl PartialEq for PendingRun
§impl Serialize for PendingRun
impl Serialize for PendingRun
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for PendingRun
Auto Trait Implementations§
impl Freeze for PendingRun
impl RefUnwindSafe for PendingRun
impl Send for PendingRun
impl Sync for PendingRun
impl Unpin for PendingRun
impl UnsafeUnpin for PendingRun
impl UnwindSafe for PendingRun
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].