pub struct ServerStatus {
pub connected: bool,
pub url: Option<String>,
pub token: Option<bool>,
pub reachable: Option<bool>,
pub server_version: Option<String>,
pub api_version: Option<String>,
pub user: Option<String>,
pub agent: Option<String>,
pub problem: Option<String>,
pub pulse: Option<Pulse>,
}Expand description
The connection to a kasl-server: kasl server status.
Fields the checks did not reach are null: no token means the server was
never asked, an unreachable server means nobody was identified.
Fields§
§connected: bool§url: Option<String>§token: Option<bool>Whether the agent token is in the OS keyring.
reachable: Option<bool>Whether the server answered its health check.
server_version: Option<String>§api_version: Option<String>§user: Option<String>Whose token it is, by the server’s account.
agent: Option<String>§problem: Option<String>The first check that failed, in its words.
pulse: Option<Pulse>null when not connected.
Trait Implementations§
Source§impl Debug for ServerStatus
impl Debug for ServerStatus
Auto Trait Implementations§
impl Freeze for ServerStatus
impl RefUnwindSafe for ServerStatus
impl Send for ServerStatus
impl Sync for ServerStatus
impl Unpin for ServerStatus
impl UnsafeUnpin for ServerStatus
impl UnwindSafe for ServerStatus
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