#[non_exhaustive]pub struct MemoryMonitor {
pub system: Option<SystemMemoryMonitor>,
pub process: Option<ProcessMemoryMonitor>,
}Expand description
The memory block of system monitor.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.system: Option<SystemMemoryMonitor>§process: Option<ProcessMemoryMonitor>Trait Implementations§
Source§impl Clone for MemoryMonitor
impl Clone for MemoryMonitor
Source§impl Debug for MemoryMonitor
impl Debug for MemoryMonitor
impl Eq for MemoryMonitor
Source§impl PartialEq for MemoryMonitor
impl PartialEq for MemoryMonitor
impl StructuralPartialEq for MemoryMonitor
Auto Trait Implementations§
impl Forget for MemoryMonitor
impl Freeze for MemoryMonitorwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<ProcessMemoryThreshold>: Freeze,
impl Move for MemoryMonitor
impl RefUnwindSafe for MemoryMonitor
impl Send for MemoryMonitorwhere
RawVecInner: Send,
impl Sync for MemoryMonitorwhere
RawVecInner: Sync,
impl Unpin for MemoryMonitor
impl UnsafeUnpin for MemoryMonitorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<ProcessMemoryThreshold>: UnsafeUnpin,
impl UnwindSafe for MemoryMonitorwhere
RawVecInner: UnwindSafe,
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