pub enum CgroupScope {
Container {
runtime: String,
id: String,
},
Vm {
name: String,
},
Service {
unit: String,
system: bool,
},
App {
app: String,
},
}Expand description
What a Linux cgroup v2 path says about a process’s owner.
Variants§
Container
Container runtime scope (docker, podman, containerd, cri-o, kubepods, lxc, nspawn). id ≤ 12 chars.
Vm
libvirt / QEMU machine scope.
Service
A systemd service unit; system = under system.slice.
App
A desktop app scope (app-gnome-firefox-1234.scope, snap.firefox.firefox-….scope).
Trait Implementations§
Source§impl Clone for CgroupScope
impl Clone for CgroupScope
Source§impl Debug for CgroupScope
impl Debug for CgroupScope
Source§impl<'de> Deserialize<'de> for CgroupScope
impl<'de> Deserialize<'de> for CgroupScope
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
impl Eq for CgroupScope
Source§impl PartialEq for CgroupScope
impl PartialEq for CgroupScope
Source§impl Serialize for CgroupScope
impl Serialize for CgroupScope
impl StructuralPartialEq for CgroupScope
Auto Trait Implementations§
impl Forget for CgroupScope
impl Freeze for CgroupScope
impl Move for CgroupScope
impl RefUnwindSafe for CgroupScope
impl Send for CgroupScopewhere
RawVecInner: Send,
impl Sync for CgroupScopewhere
RawVecInner: Sync,
impl Unpin for CgroupScope
impl UnsafeUnpin for CgroupScope
impl UnwindSafe for CgroupScopewhere
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