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 Freeze for SysInfo
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> 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
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more