pub struct ContainerProcess {
pub pid: String,
pub user: String,
pub time: String,
pub command: String,
pub raw_line: String,
}
Expand description
Information about a running process in a container
Fields§
§pid: String
Process ID
user: String
User running the process
time: String
CPU time
command: String
Command line
raw_line: String
Raw output line
Implementations§
Source§impl ContainerProcess
impl ContainerProcess
Sourcepub fn pid_as_int(&self) -> Option<u32>
pub fn pid_as_int(&self) -> Option<u32>
Get PID as integer
Trait Implementations§
Source§impl Clone for ContainerProcess
impl Clone for ContainerProcess
Source§fn clone(&self) -> ContainerProcess
fn clone(&self) -> ContainerProcess
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 moreAuto Trait Implementations§
impl Freeze for ContainerProcess
impl RefUnwindSafe for ContainerProcess
impl Send for ContainerProcess
impl Sync for ContainerProcess
impl Unpin for ContainerProcess
impl UnwindSafe for ContainerProcess
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