pub struct TopResult {
pub output: CommandOutput,
pub container: String,
pub processes: Vec<ContainerProcess>,
}
Expand description
Result from the top command
Fields§
§output: CommandOutput
Raw command output
container: String
Container that was inspected
processes: Vec<ContainerProcess>
Parsed process information
Implementations§
Source§impl TopResult
impl TopResult
Sourcepub fn processes(&self) -> &[ContainerProcess]
pub fn processes(&self) -> &[ContainerProcess]
Get the parsed processes
Sourcepub fn output(&self) -> &CommandOutput
pub fn output(&self) -> &CommandOutput
Get the raw command output
Sourcepub fn process_count(&self) -> usize
pub fn process_count(&self) -> usize
Get process count
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TopResult
impl RefUnwindSafe for TopResult
impl Send for TopResult
impl Sync for TopResult
impl Unpin for TopResult
impl UnwindSafe for TopResult
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