pub struct SystemInfo {
pub os: String,
pub architecture: String,
pub total_memory_mb: i64,
pub cpus: u32,
pub storage_driver: String,
pub runtime_version: String,
pub kernel_version: String,
pub operating_system: String,
pub gpus: Vec<GpuInfo>,
}Expand description
Host-level information about a backend runtime.
Fields§
§os: StringOperating system (e.g. "linux", "darwin").
architecture: StringCPU architecture (e.g. "x86_64", "aarch64").
total_memory_mb: i64Total host memory in mebibytes.
cpus: u32Number of logical CPUs.
storage_driver: StringStorage driver in use (e.g. "overlay2").
runtime_version: StringRuntime version (e.g. Docker/containerd version).
kernel_version: StringHost kernel version.
operating_system: StringFull operating-system name (e.g. "Ubuntu 24.04").
gpus: Vec<GpuInfo>GPUs detected by the runtime.
Trait Implementations§
Source§impl Clone for SystemInfo
impl Clone for SystemInfo
Source§fn clone(&self) -> SystemInfo
fn clone(&self) -> SystemInfo
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 Debug for SystemInfo
impl Debug for SystemInfo
Source§impl Default for SystemInfo
impl Default for SystemInfo
Source§fn default() -> SystemInfo
fn default() -> SystemInfo
Returns the “default value” for a type. Read more
impl Eq for SystemInfo
Source§impl PartialEq for SystemInfo
impl PartialEq for SystemInfo
impl StructuralPartialEq for SystemInfo
Auto Trait Implementations§
impl Freeze for SystemInfo
impl RefUnwindSafe for SystemInfo
impl Send for SystemInfo
impl Sync for SystemInfo
impl Unpin for SystemInfo
impl UnsafeUnpin for SystemInfo
impl UnwindSafe for SystemInfo
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