pub struct ProbeStatus {
pub probe_id: u32,
pub connected: bool,
pub controller: Option<String>,
pub uptime_secs: u64,
pub measurements: HashMap<String, u64>,
pub queue_depth: usize,
pub public_key: Option<String>,
pub last_connection_error: Option<String>,
pub pause: Option<PauseState>,
}Expand description
Current probe status, sent to the tray app on socket connection.
Fields§
§probe_id: u32Probe ID (0 if not yet registered)
connected: boolWhether connected to the controller
controller: Option<String>Controller hostname (if connected)
uptime_secs: u64Seconds since probe started
measurements: HashMap<String, u64>Scheduled measurement counts by type
queue_depth: usizeResults waiting in the upload queue
public_key: Option<String>SSH public key (for registration)
last_connection_error: Option<String>Most recent controller/registration error. Lets the tray show why the probe is disconnected instead of just a red dot.
pause: Option<PauseState>Active pause (suppresses measurement dispatch). Tray writes the underlying file; probe reads it back on every scheduler tick.
Trait Implementations§
Source§impl Clone for ProbeStatus
impl Clone for ProbeStatus
Source§fn clone(&self) -> ProbeStatus
fn clone(&self) -> ProbeStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProbeStatus
impl Debug for ProbeStatus
Source§impl<'de> Deserialize<'de> for ProbeStatus
impl<'de> Deserialize<'de> for ProbeStatus
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 ProbeStatus
impl RefUnwindSafe for ProbeStatus
impl Send for ProbeStatus
impl Sync for ProbeStatus
impl Unpin for ProbeStatus
impl UnwindSafe for ProbeStatus
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