pub struct NodeProbeResult {
pub status: NodeStatus,
pub latency_ms: i64,
pub xray_version: String,
pub panel_version: String,
pub cpu_pct: f64,
pub mem_pct: f64,
pub uptime_secs: u64,
pub error: String,
pub xray_state: String,
pub xray_error: String,
}Expand description
Result of probing saved or unsaved node connection details.
An unreachable node is represented by status == Offline and error, not
by an API-envelope failure.
Fields§
§status: NodeStatusReachability result.
latency_ms: i64Round-trip latency in milliseconds.
xray_version: StringRemote Xray version.
panel_version: StringRemote panel version.
cpu_pct: f64Remote CPU utilization percentage.
mem_pct: f64Remote memory utilization percentage.
uptime_secs: u64Remote host uptime in seconds.
error: StringFriendly connectivity diagnostic when offline.
xray_state: StringRemote Xray process state when the panel itself was reachable.
xray_error: StringRemote Xray process error.
Trait Implementations§
Source§impl Clone for NodeProbeResult
impl Clone for NodeProbeResult
Source§impl Debug for NodeProbeResult
impl Debug for NodeProbeResult
Source§impl Default for NodeProbeResult
impl Default for NodeProbeResult
Source§impl<'de> Deserialize<'de> for NodeProbeResultwhere
NodeProbeResult: Default,
impl<'de> Deserialize<'de> for NodeProbeResultwhere
NodeProbeResult: Default,
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 NodeProbeResult
impl PartialEq for NodeProbeResult
Source§impl Serialize for NodeProbeResult
impl Serialize for NodeProbeResult
impl StructuralPartialEq for NodeProbeResult
Auto Trait Implementations§
impl Freeze for NodeProbeResult
impl RefUnwindSafe for NodeProbeResult
impl Send for NodeProbeResult
impl Sync for NodeProbeResult
impl Unpin for NodeProbeResult
impl UnsafeUnpin for NodeProbeResult
impl UnwindSafe for NodeProbeResult
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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