[][src]Struct procshot_server::EncoDecode

pub struct EncoDecode {
    pub hostname: String,
    pub pid_map_list: HashMap<i32, PidStatus>,
    pub time_epoch: u64,
    pub delay: u64,
    pub total_cpu_time: u64,
}

EncodDecode is the struct that we use to hold additional metadata and write to disk as serialized data of the form let enc encoded: Vec<u8> = bincode::serialize(&encodecode).unwrap();.

Fields

hostname: Stringpid_map_list: HashMap<i32, PidStatus>

Vector of hashmap of pid to the pidstats.

time_epoch: u64

The epoch time at which the stats were recorded

delay: u64

Can be used for sampling

total_cpu_time: u64

The cumilative CPU time in jiffies.

Trait Implementations

impl Clone for EncoDecode[src]

impl PartialEq<EncoDecode> for EncoDecode[src]

impl Debug for EncoDecode[src]

impl Serialize for EncoDecode[src]

impl<'de> Deserialize<'de> for EncoDecode[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]