#[non_exhaustive]pub struct SystemMemoryEvent {
pub swap_usage_threshold: Option<String>,
pub actions: Vec<String>,
}Expand description
A minor-event, major-event or critical-event of the system-level memory 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.swap_usage_threshold: Option<String>Percentage, from threshold swap-usage.
actions: Vec<String>e.g. snmp-trap, live-vmcore, RE-restart, RE-switchover.
Trait Implementations§
Source§impl Clone for SystemMemoryEvent
impl Clone for SystemMemoryEvent
Source§impl Debug for SystemMemoryEvent
impl Debug for SystemMemoryEvent
impl Eq for SystemMemoryEvent
Source§impl PartialEq for SystemMemoryEvent
impl PartialEq for SystemMemoryEvent
impl StructuralPartialEq for SystemMemoryEvent
Auto Trait Implementations§
impl Forget for SystemMemoryEvent
impl Freeze for SystemMemoryEvent
impl Move for SystemMemoryEvent
impl RefUnwindSafe for SystemMemoryEvent
impl Send for SystemMemoryEventwhere
RawVecInner: Send,
impl Sync for SystemMemoryEventwhere
RawVecInner: Sync,
impl Unpin for SystemMemoryEvent
impl UnsafeUnpin for SystemMemoryEventwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for SystemMemoryEventwhere
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