pub struct McStatusSnapshot {
pub online: bool,
pub players_online: i32,
pub players_max: i32,
pub version: String,
pub latency_ms: u64,
pub motd: String,
pub error: Option<String>,
pub tps: Option<f64>,
pub alert: Option<String>,
}Expand description
Snapshot of MC server status at a point in time.
Fields§
§online: bool§players_online: i32§players_max: i32§version: String§latency_ms: u64§motd: String§error: Option<String>§tps: Option<f64>TPS from RCON (Paper/Purpur servers), None if unavailable (P6-1)
alert: Option<String>Alert status: “ok”, “warning”, “critical” (P6-3)
Implementations§
Trait Implementations§
Source§impl Clone for McStatusSnapshot
impl Clone for McStatusSnapshot
Source§fn clone(&self) -> McStatusSnapshot
fn clone(&self) -> McStatusSnapshot
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 McStatusSnapshot
impl Debug for McStatusSnapshot
Source§impl<'de> Deserialize<'de> for McStatusSnapshot
impl<'de> Deserialize<'de> for McStatusSnapshot
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 McStatusSnapshot
impl RefUnwindSafe for McStatusSnapshot
impl Send for McStatusSnapshot
impl Sync for McStatusSnapshot
impl Unpin for McStatusSnapshot
impl UnsafeUnpin for McStatusSnapshot
impl UnwindSafe for McStatusSnapshot
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