Skip to main content

TierInputs

Struct TierInputs 

Source
pub struct TierInputs {
    pub has_accelerator: bool,
    pub local_inference_capable: bool,
    pub models_fit_locally: bool,
    pub compute_node_paired: bool,
    pub bearer_acceptable: bool,
    pub can_run_light_local: bool,
}
Expand description

The inputs the agent reads to pick a perception tier.

Fields§

§has_accelerator: bool

The board has an NPU / GPU.

§local_inference_capable: bool

The board has no NPU but a CPU strong enough to run the detector locally (for example a Cortex-A76-class SoC). A distinct signal from has_accelerator: it is a full local compute path, so it resolves to Local the same way an accelerator does, and the board runs detection on-board rather than offloading. Set it only when the board really has that path, so the picker never invents one.

§models_fit_locally: bool

The required models fit + run on the local accelerator.

§compute_node_paired: bool

A compute node is paired (local-first, over the LAN or a relay).

§bearer_acceptable: bool

The bearer’s latency is inside the offload budget for the mission.

§can_run_light_local: bool

The board can run a light local detector + fast VIO (the control-loop path) even though it cannot run the heavy models.

Implementations§

Source§

impl TierInputs

Source

pub fn for_drone( has_accelerator: bool, local_inference_capable: bool, compute_node_paired: bool, bearer_acceptable: bool, ) -> Self

The tier inputs for a drone: the local compute picture (an NPU, or a CPU strong enough for the detector) plus the offload-link signal (a paired, reachable compute node). models_fit_locally is held true for an accelerator board (assumed to fit its recommended detector, as there is no model-fit probe) and can_run_light_local false (no split light-detector plus fast-VIO path). Build every status view through this so they all feed pick_tier identically.

Trait Implementations§

Source§

impl Clone for TierInputs

Source§

fn clone(&self) -> Self

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 Copy for TierInputs

Source§

impl Debug for TierInputs

Source§

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

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

impl Eq for TierInputs

Source§

impl PartialEq for TierInputs

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for TierInputs

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> 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, !>

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.