pub(crate) struct WorkerRuntime {
stored: String,
model: Option<String>,
effort: Option<String>,
placement: Placement,
route: Option<Choice>,
route_line: String,
route_asked: bool,
harness: Option<String>,
}Expand description
The worker’s remembered runtime (agentlastruntime): the leader’s, with
the requested model and effort over it.
Fields§
§stored: StringThe normalized JSON to store; empty when there is nothing to remember.
model: Option<String>§effort: Option<String>§placement: PlacementWhere it runs, when it was asked for (runtime, container_image, memory_mb, cpus).
route: Option<Choice>The model route and model it runs on, when it has one (Agents routes).
route_line: StringWhat the approval says about that route and who pays.
route_asked: boolThe route was named, or differs from the leader’s: the person is asked even when their own turn asked for the worker, because their words asked for a worker and not for spending their key.
harness: Option<String>Its harness, when that is not its leader’s.
Trait Implementations§
Source§impl Debug for WorkerRuntime
impl Debug for WorkerRuntime
Source§impl Default for WorkerRuntime
impl Default for WorkerRuntime
Source§fn default() -> WorkerRuntime
fn default() -> WorkerRuntime
Returns the “default value” for a type. Read more
impl Eq for WorkerRuntime
Source§impl PartialEq for WorkerRuntime
impl PartialEq for WorkerRuntime
impl StructuralPartialEq for WorkerRuntime
Auto Trait Implementations§
impl Freeze for WorkerRuntime
impl RefUnwindSafe for WorkerRuntime
impl Send for WorkerRuntime
impl Sync for WorkerRuntime
impl Unpin for WorkerRuntime
impl UnsafeUnpin for WorkerRuntime
impl UnwindSafe for WorkerRuntime
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
Converts
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> ⓘ
Converts
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> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.