pub struct ParallelData {
pub connection_count: Arc<Mutex<usize>>,
pub system_cpu: Arc<Mutex<f64>>,
pub system_memory: Arc<Mutex<f64>>,
pub system_disk: Arc<Mutex<f64>>,
pub process_count: Arc<Mutex<usize>>,
pub diagnostic_count: Arc<Mutex<usize>>,
pub last_update: Arc<Mutex<Instant>>,
}Fields§
§connection_count: Arc<Mutex<usize>>§system_cpu: Arc<Mutex<f64>>§system_memory: Arc<Mutex<f64>>§system_disk: Arc<Mutex<f64>>§process_count: Arc<Mutex<usize>>§diagnostic_count: Arc<Mutex<usize>>§last_update: Arc<Mutex<Instant>>Implementations§
Source§impl ParallelData
impl ParallelData
pub fn new() -> Self
pub fn update_parallel(&self, state: &mut DashboardState)
pub fn should_update(&self) -> bool
Trait Implementations§
Source§impl Clone for ParallelData
impl Clone for ParallelData
Source§fn clone(&self) -> ParallelData
fn clone(&self) -> ParallelData
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 moreAuto Trait Implementations§
impl Freeze for ParallelData
impl RefUnwindSafe for ParallelData
impl Send for ParallelData
impl Sync for ParallelData
impl Unpin for ParallelData
impl UnsafeUnpin for ParallelData
impl UnwindSafe for ParallelData
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,
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