pub struct LaneSnapshot {
pub agents: AgentCounts,
pub inference: Vec<PoolOccupancy>,
pub tools_busy: usize,
pub tools_queued: usize,
pub tools_parked: usize,
pub tools_workers: usize,
pub tools_saturated: bool,
}Expand description
What the world is holding and what it is waiting on, at one instant.
Fields§
§agents: AgentCountsLoaded agents by status.
inference: Vec<PoolOccupancy>Inference-pool occupancy, one entry per model actually used.
tools_busy: usizeTool batches holding lane capacity and running.
tools_queued: usizeTool batches waiting for lane capacity.
tools_parked: usizeTool batches parked on an unbounded wait, holding no capacity.
tools_workers: usizeThe tool lane’s concurrency cap.
tools_saturated: boolThe lane full with batches still queued behind it.
Implementations§
Source§impl LaneSnapshot
impl LaneSnapshot
Sourcepub fn is_under_pressure(&self) -> bool
pub fn is_under_pressure(&self) -> bool
Whether some lane is at capacity with work queued behind it - the shape worth raising the log level for.
Sourcepub fn inference_summary(&self) -> String
pub fn inference_summary(&self) -> String
The per-model inference occupancy, rendered for a log line.
Trait Implementations§
Source§impl Clone for LaneSnapshot
impl Clone for LaneSnapshot
Source§fn clone(&self) -> LaneSnapshot
fn clone(&self) -> LaneSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LaneSnapshot
impl Debug for LaneSnapshot
impl Eq for LaneSnapshot
Source§impl PartialEq for LaneSnapshot
impl PartialEq for LaneSnapshot
impl StructuralPartialEq for LaneSnapshot
Auto Trait Implementations§
impl Freeze for LaneSnapshot
impl RefUnwindSafe for LaneSnapshot
impl Send for LaneSnapshot
impl Sync for LaneSnapshot
impl Unpin for LaneSnapshot
impl UnsafeUnpin for LaneSnapshot
impl UnwindSafe for LaneSnapshot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ConditionalSend for Twhere
T: Send,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> TypeData for T
impl<T> TypeData for T
Source§fn clone_type_data(&self) -> Box<dyn TypeData>
fn clone_type_data(&self) -> Box<dyn TypeData>
Creates a type-erased clone of this value.