Skip to main content

FleetUnit

Struct FleetUnit 

Source
pub struct FleetUnit {
    pub host: Option<String>,
    pub kind: Option<String>,
    pub label: Option<String>,
    pub metrics: Option<Box<FleetMetrics>>,
    pub queued: Option<i32>,
    pub running: Option<i32>,
    pub sessions: Option<i32>,
    pub source: Option<String>,
    pub spec: Option<Box<FleetSpec>>,
    pub status: Option<String>,
    pub unit: Option<String>,
}

Fields§

§host: Option<String>

Host is the unit’s hostname. Empty for a unit that is not one host: a cluster row has no hostname to report.

§kind: Option<String>

Kind is what the unit IS: laptop, cloud, gpu, cluster, machine or worker.

§label: Option<String>

Label is the name to show a human — a target’s label, a worker’s hostname, a machine’s display name. Empty when the source has none to give.

§metrics: Option<Box<FleetMetrics>>

Metrics is the unit’s latest utilization: its own live snapshot when it keeps one (a run-target’s heartbeat wins), else the newest sample from the series for the SAME source. Absent means nothing is known about this unit’s load — which is deliberately not the same as a reading of zero.

§queued: Option<i32>

Queued is how many renders are waiting on THIS GPU’s own lane in the org’s gpu-jobs queue. BYO units only — an agent run-target dispatches, it does not queue — and omitted when nothing is waiting.

§running: Option<i32>

Running is what the unit is executing right now: agent sessions in flight for a run-target, claimed renders for a BYO GPU.

§sessions: Option<i32>

Sessions is how many agent sessions are open on this unit. Always present, and 0 for a source that cannot host agent sessions at all — a fact about that plane, not a gap in the reading.

§source: Option<String>

Source is the plane this row came from: "agent" (a linked run-target), "byo" (a worker or cluster the org dialed in) or "visor" (a machine Hanzo provisioned). It is half the row’s identity, and it says which face owns the unit — /v1/agents/targets, /v1/visor/fleet/workers, /v1/visor/machines.

§spec: Option<Box<FleetSpec>>

Spec is the unit’s static capability. Absent when the source reported none — unknown capability, never a zeroed one.

§status: Option<String>

Status is liveness in the SOURCE’s own vocabulary, because each plane decides it differently: a run-target’s is derived from its heartbeat, a BYO worker’s is online/offline on the 90s window, a BYO cluster’s is "attached", and a Visor machine’s is the provider’s word for its lifecycle state.

§unit: Option<String>

Unit is the SOURCE’s own id for this unit — a run-target id, a BYO worker id, a Visor machine name — so a row links straight back to the face that owns it. It is unique within a source, not across them: two planes may mint the same id, which is why (source, unit) together is the identity.

Implementations§

Trait Implementations§

Source§

impl Clone for FleetUnit

Source§

fn clone(&self) -> FleetUnit

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FleetUnit

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for FleetUnit

Source§

fn default() -> FleetUnit

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for FleetUnit

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for FleetUnit

Source§

fn eq(&self, other: &FleetUnit) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for FleetUnit

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for FleetUnit

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more