Struct cgroups_rs::NetworkResources [−][src]
pub struct NetworkResources { pub class_id: Option<u64>, pub priorities: Vec<NetworkPriority>, }
Expand description
Collections of limits and tags that can be imposed on packets emitted by the tasks in the control group.
Fields
class_id: Option<u64>
The networking class identifier to attach to the packets.
This can then later be used in iptables and such to have special rules.
priorities: Vec<NetworkPriority>
Priority of the egress traffic for each interface.
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for NetworkResources
impl Send for NetworkResources
impl Sync for NetworkResources
impl Unpin for NetworkResources
impl UnwindSafe for NetworkResources
Blanket Implementations
Mutably borrows from an owned value. Read more