pub struct HostInfo {
pub hostname: String,
pub os: String,
pub kernel: String,
pub uptime_secs: u64,
pub rigtop_version: String,
}Expand description
Host identification and uptime.
Fields§
§hostname: StringHost name as reported by the OS.
os: StringHuman readable OS name and version (e.g. “Linux 26.04 Ubuntu”).
kernel: StringKernel version string.
uptime_secs: u64Seconds since boot.
rigtop_version: StringVersion of the rigtop that took the snapshot (the agent’s, for a remote host). Agents before 0.9.1 leave it out; the remote source fills it in from the agent’s greeting.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HostInfo
impl<'de> Deserialize<'de> for HostInfo
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 HostInfo
impl RefUnwindSafe for HostInfo
impl Send for HostInfo
impl Sync for HostInfo
impl Unpin for HostInfo
impl UnsafeUnpin for HostInfo
impl UnwindSafe for HostInfo
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