pub struct HostSnapshot {
pub schema_version: u32,
pub platform: PlatformInfo,
pub gpus: Vec<GpuRecord>,
pub training_backend: TrainingBackend,
pub probes: ProbeStatus,
}Fields§
§schema_version: u32§platform: PlatformInfo§gpus: Vec<GpuRecord>§training_backend: TrainingBackend§probes: ProbeStatusImplementations§
Source§impl HostSnapshot
impl HostSnapshot
Sourcepub fn primary_vram_mb(&self) -> Option<u64>
pub fn primary_vram_mb(&self) -> Option<u64>
Primary VRAM for pre-checks: NVIDIA GPU at index 0, else first ROCm GPU with known VRAM.
None if unknown or zero (e.g. Apple with no exposed VRAM size).
Trait Implementations§
Source§impl Clone for HostSnapshot
impl Clone for HostSnapshot
Source§fn clone(&self) -> HostSnapshot
fn clone(&self) -> HostSnapshot
Returns a duplicate of the value. Read more
1.0.0 · 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 HostSnapshot
impl Debug for HostSnapshot
Source§impl<'de> Deserialize<'de> for HostSnapshot
impl<'de> Deserialize<'de> for HostSnapshot
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
Auto Trait Implementations§
impl Freeze for HostSnapshot
impl RefUnwindSafe for HostSnapshot
impl Send for HostSnapshot
impl Sync for HostSnapshot
impl Unpin for HostSnapshot
impl UnsafeUnpin for HostSnapshot
impl UnwindSafe for HostSnapshot
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