pub struct ServerStatus {Show 21 fields
pub cpu: f64,
pub cpu_cores: i32,
pub logical_pro: i32,
pub cpu_speed_mhz: f64,
pub mem: ResourceUsage,
pub swap: ResourceUsage,
pub disk: ResourceUsage,
pub disk_io: DiskIo,
pub disk_traffic: DiskIo,
pub xray: XrayStatus,
pub amneziawg: AmneziaWgStatus,
pub panel_version: String,
pub panel_guid: String,
pub uptime: u64,
pub loads: Vec<f64>,
pub tcp_count: i32,
pub udp_count: i32,
pub net_io: NetworkIo,
pub net_traffic: NetworkTraffic,
pub public_ip: PublicAddresses,
pub app_stats: AppStats,
}Expand description
Complete cached machine and Xray status snapshot.
Fields§
§cpu: f64CPU use percentage.
cpu_cores: i32Physical CPU core count.
logical_pro: i32Logical processor count.
cpu_speed_mhz: f64Reported CPU speed in MHz.
mem: ResourceUsageMemory usage.
swap: ResourceUsageSwap usage.
disk: ResourceUsageDisk usage.
disk_io: DiskIoCumulative disk IO.
disk_traffic: DiskIoDisk throughput since the previous sample.
xray: XrayStatusXray state.
amneziawg: AmneziaWgStatusEmbedded AmneziaWG subsystem state.
panel_version: StringRunning panel version.
panel_guid: StringStable panel identifier.
uptime: u64Host uptime in seconds.
loads: Vec<f64>Load averages reported by the host.
tcp_count: i32Open TCP connection count.
udp_count: i32Open UDP connection count.
net_io: NetworkIoCurrent network IO.
net_traffic: NetworkTrafficCumulative network traffic.
public_ip: PublicAddressesDetected public addresses.
app_stats: AppStatsPanel process statistics.
Trait Implementations§
Source§impl Clone for ServerStatus
impl Clone for ServerStatus
Source§impl Debug for ServerStatus
impl Debug for ServerStatus
Source§impl Default for ServerStatus
impl Default for ServerStatus
Source§impl<'de> Deserialize<'de> for ServerStatuswhere
ServerStatus: Default,
impl<'de> Deserialize<'de> for ServerStatuswhere
ServerStatus: 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 ServerStatus
impl PartialEq for ServerStatus
Source§impl Serialize for ServerStatus
impl Serialize for ServerStatus
impl StructuralPartialEq 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
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