pub struct BoardInfo {
pub id: String,
pub name: String,
pub has_npu: bool,
pub accelerators: Vec<String>,
}Expand description
The board the node runs on.
Fields§
§id: StringThe board identity manifests’ compatibility.supported_boards match
against (the board sidecar’s name).
name: StringThe hardware model string the board reports (the sidecar’s model).
has_npu: boolThe board declares a neural accelerator (npu_tops > 0). The same rule
the offload decision and the status surfaces’ hasAccelerator key on.
accelerators: Vec<String>The inference accelerators the board declares: npu when it has one,
and cpu-<runtime> (e.g. cpu-onnx) when it declares CPU inference.
Empty when it declares neither.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BoardInfo
impl<'de> Deserialize<'de> for BoardInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for BoardInfo
Auto Trait Implementations§
impl Freeze for BoardInfo
impl RefUnwindSafe for BoardInfo
impl Send for BoardInfo
impl Sync for BoardInfo
impl Unpin for BoardInfo
impl UnsafeUnpin for BoardInfo
impl UnwindSafe for BoardInfo
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