pub struct FakeSystem { /* private fields */ }Implementations§
Source§impl FakeSystem
impl FakeSystem
pub fn with_cpu(self, cpu_snapshot: CpuSnapshot) -> Self
pub fn with_memory(self, memory: MemorySnapshot) -> Self
pub fn with_gpu(self, gpu: GpuSnapshot) -> Self
pub fn with_processes(self, processes: ProcessesSnapshot) -> Self
Trait Implementations§
Source§impl Default for FakeSystem
impl Default for FakeSystem
Source§fn default() -> FakeSystem
fn default() -> FakeSystem
Returns the “default value” for a type. Read more
Source§impl SystemMonitor for FakeSystem
impl SystemMonitor for FakeSystem
fn collect_snapshot(&mut self, _: &DataUpdateKind) -> DataSnapshot
fn kill_process(&self, _: usize)
fn gpu_available(&self) -> bool
Auto Trait Implementations§
impl Freeze for FakeSystem
impl RefUnwindSafe for FakeSystem
impl Send for FakeSystem
impl Sync for FakeSystem
impl Unpin for FakeSystem
impl UnsafeUnpin for FakeSystem
impl UnwindSafe for FakeSystem
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> 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