pub struct HostConfig {
pub name: String,
pub ssh: Option<String>,
pub command: Option<String>,
pub sections: Option<Vec<OverviewSection>>,
}Expand description
A remote host to monitor.
Fields§
§name: StringName shown in tabs and on the overview card.
ssh: Option<String>SSH destination (a ~/.ssh/config host, user@host, …);
defaults to name.
command: Option<String>Command that starts the agent; defaults to rigtop --agent.
sections: Option<Vec<OverviewSection>>Overview sections for this host, overriding [overview] sections
(e.g. storage first for a file server).
Implementations§
Source§impl HostConfig
impl HostConfig
Sourcepub fn from_destination(destination: &str) -> Self
pub fn from_destination(destination: &str) -> Self
A host given only by its SSH destination (e.g. on the command line).
Sourcepub fn destination(&self) -> &str
pub fn destination(&self) -> &str
The SSH destination.
Trait Implementations§
Source§impl Clone for HostConfig
impl Clone for HostConfig
Source§impl Debug for HostConfig
impl Debug for HostConfig
Source§impl<'de> Deserialize<'de> for HostConfig
impl<'de> Deserialize<'de> for HostConfig
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
Source§impl PartialEq for HostConfig
impl PartialEq for HostConfig
Source§impl Serialize for HostConfig
impl Serialize for HostConfig
impl StructuralPartialEq for HostConfig
Auto Trait Implementations§
impl Freeze for HostConfig
impl RefUnwindSafe for HostConfig
impl Send for HostConfig
impl Sync for HostConfig
impl Unpin for HostConfig
impl UnsafeUnpin for HostConfig
impl UnwindSafe for HostConfig
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