pub struct GpuInfoSummary {
pub vendor: String,
pub model: String,
pub memory_mb: u64,
}Expand description
Summary of a GPU on a node, stored in Raft cluster state and reported via cluster join requests.
Lifted from zlayer-scheduler::raft so that wire-types consumers
(zlayer-api DTOs, the CLI, the manager UI) can describe GPU inventory
without depending on the heavier scheduler crate. zlayer-scheduler
re-exports this type for source compatibility.
Fields§
§vendor: StringVendor: “nvidia”, “amd”, “intel”, or “unknown”
model: StringModel name (e.g., “NVIDIA A100-SXM4-80GB”)
memory_mb: u64VRAM in MB
Trait Implementations§
Source§impl Clone for GpuInfoSummary
impl Clone for GpuInfoSummary
Source§fn clone(&self) -> GpuInfoSummary
fn clone(&self) -> GpuInfoSummary
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 ComposeSchema for GpuInfoSummary
impl ComposeSchema for GpuInfoSummary
Source§impl Debug for GpuInfoSummary
impl Debug for GpuInfoSummary
Source§impl<'de> Deserialize<'de> for GpuInfoSummary
impl<'de> Deserialize<'de> for GpuInfoSummary
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
Source§impl PartialEq for GpuInfoSummary
impl PartialEq for GpuInfoSummary
Source§fn eq(&self, other: &GpuInfoSummary) -> bool
fn eq(&self, other: &GpuInfoSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GpuInfoSummary
impl Serialize for GpuInfoSummary
Source§impl ToSchema for GpuInfoSummary
impl ToSchema for GpuInfoSummary
impl StructuralPartialEq for GpuInfoSummary
Auto Trait Implementations§
impl Freeze for GpuInfoSummary
impl RefUnwindSafe for GpuInfoSummary
impl Send for GpuInfoSummary
impl Sync for GpuInfoSummary
impl Unpin for GpuInfoSummary
impl UnsafeUnpin for GpuInfoSummary
impl UnwindSafe for GpuInfoSummary
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