Struct sc_telemetry::SysInfo
source · pub struct SysInfo {
pub cpu: Option<String>,
pub memory: Option<u64>,
pub core_count: Option<u32>,
pub linux_kernel: Option<String>,
pub linux_distro: Option<String>,
pub is_virtual_machine: Option<bool>,
}
Expand description
Hardware and software information for the node.
Gathering most of this information is highly OS-specific, so most of the fields here are optional.
Fields§
§cpu: Option<String>
The exact CPU model.
memory: Option<u64>
The total amount of memory, in bytes.
core_count: Option<u32>
The number of physical CPU cores.
linux_kernel: Option<String>
The Linux kernel version.
linux_distro: Option<String>
The exact Linux distribution used.
is_virtual_machine: Option<bool>
Whether the node’s running under a virtual machine.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SysInfo
impl Send for SysInfo
impl Sync for SysInfo
impl Unpin for SysInfo
impl UnwindSafe for SysInfo
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere Self: UniqueSaturatedFrom<T>,
source§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of
T
. Read moresource§impl<T, S> UniqueSaturatedInto<T> for Swhere
T: Bounded,
S: TryInto<T>,
impl<T, S> UniqueSaturatedInto<T> for Swhere T: Bounded, S: TryInto<T>,
source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T
.