pub struct ServerStatus {
pub server_running: bool,
pub cpu_state: CpuState,
pub clients_count: usize,
}Expand description
Server and CPU status returned by DataStore::get_status.
Fields§
§server_running: bool0 = stopped, 1 = running
cpu_state: CpuState§clients_count: usizeTrait Implementations§
Source§impl Clone for ServerStatus
impl Clone for ServerStatus
Source§fn clone(&self) -> ServerStatus
fn clone(&self) -> ServerStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ServerStatus
impl Debug for ServerStatus
Source§impl PartialEq for ServerStatus
impl PartialEq for ServerStatus
Source§fn eq(&self, other: &ServerStatus) -> bool
fn eq(&self, other: &ServerStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ServerStatus
impl Eq 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