Struct cgroups_rs::NetworkResources
source · 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§
source§impl Clone for NetworkResources
impl Clone for NetworkResources
source§fn clone(&self) -> NetworkResources
fn clone(&self) -> NetworkResources
Returns a copy 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 moresource§impl Debug for NetworkResources
impl Debug for NetworkResources
source§impl Default for NetworkResources
impl Default for NetworkResources
source§fn default() -> NetworkResources
fn default() -> NetworkResources
Returns the “default value” for a type. Read more
source§impl PartialEq<NetworkResources> for NetworkResources
impl PartialEq<NetworkResources> for NetworkResources
source§fn eq(&self, other: &NetworkResources) -> bool
fn eq(&self, other: &NetworkResources) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.