#[non_exhaustive]pub struct SystemMemoryMonitor {
pub alarm: bool,
pub frequency: Option<String>,
pub minor_event: Option<SystemMemoryEvent>,
pub major_event: Option<SystemMemoryEvent>,
pub critical_event: Option<SystemMemoryEvent>,
}Expand description
The memory system block.
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.alarm: bool§frequency: Option<String>How often usage is checked, e.g. minutes 5.
minor_event: Option<SystemMemoryEvent>§major_event: Option<SystemMemoryEvent>§critical_event: Option<SystemMemoryEvent>Trait Implementations§
Source§impl Clone for SystemMemoryMonitor
impl Clone for SystemMemoryMonitor
Source§impl Debug for SystemMemoryMonitor
impl Debug for SystemMemoryMonitor
impl Eq for SystemMemoryMonitor
Source§impl PartialEq for SystemMemoryMonitor
impl PartialEq for SystemMemoryMonitor
impl StructuralPartialEq for SystemMemoryMonitor
Auto Trait Implementations§
impl Forget for SystemMemoryMonitor
impl Freeze for SystemMemoryMonitor
impl Move for SystemMemoryMonitor
impl RefUnwindSafe for SystemMemoryMonitor
impl Send for SystemMemoryMonitorwhere
RawVecInner: Send,
impl Sync for SystemMemoryMonitorwhere
RawVecInner: Sync,
impl Unpin for SystemMemoryMonitor
impl UnsafeUnpin for SystemMemoryMonitorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for SystemMemoryMonitorwhere
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