pub struct ProcStateEvent {
pub timestamp_ms: i64,
pub pid: u32,
pub uid: u32,
pub package_name: Option<String>,
pub vm_rss_kb: u64,
pub vm_swap_kb: u64,
pub threads: u32,
pub oom_score: i32,
pub io_read_mb: u64,
pub io_write_mb: u64,
pub state: ProcState,
}Fields§
§timestamp_ms: i64§pid: u32§uid: u32§package_name: Option<String>§vm_rss_kb: u64§vm_swap_kb: u64§threads: u32§oom_score: i32oom_score: -1000 ~ 1000, 越低越不容易被 LMK 杀死
io_read_mb: u64§io_write_mb: u64§state: ProcStateTrait Implementations§
Source§impl Clone for ProcStateEvent
impl Clone for ProcStateEvent
Source§fn clone(&self) -> ProcStateEvent
fn clone(&self) -> ProcStateEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProcStateEvent
impl Debug for ProcStateEvent
Source§impl<'de> Deserialize<'de> for ProcStateEvent
impl<'de> Deserialize<'de> for ProcStateEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProcStateEvent
impl PartialEq for ProcStateEvent
Source§impl Serialize for ProcStateEvent
impl Serialize for ProcStateEvent
impl Eq for ProcStateEvent
impl StructuralPartialEq for ProcStateEvent
Auto Trait Implementations§
impl Freeze for ProcStateEvent
impl RefUnwindSafe for ProcStateEvent
impl Send for ProcStateEvent
impl Sync for ProcStateEvent
impl Unpin for ProcStateEvent
impl UnsafeUnpin for ProcStateEvent
impl UnwindSafe for ProcStateEvent
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