Struct cgroups::NetworkResources
source · pub struct NetworkResources {
pub update_values: bool,
pub class_id: 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
update_values: bool
Whether values should be applied to the controller.
class_id: 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
sourceimpl Clone for NetworkResources
impl Clone for NetworkResources
sourcefn clone(&self) -> NetworkResources
fn clone(&self) -> NetworkResources
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for NetworkResources
impl Debug for NetworkResources
sourceimpl Default for NetworkResources
impl Default for NetworkResources
sourcefn default() -> NetworkResources
fn default() -> NetworkResources
Returns the “default value” for a type. Read more
sourceimpl PartialEq<NetworkResources> for NetworkResources
impl PartialEq<NetworkResources> for NetworkResources
sourcefn eq(&self, other: &NetworkResources) -> bool
fn eq(&self, other: &NetworkResources) -> bool
impl Eq for NetworkResources
impl StructuralEq for NetworkResources
impl StructuralPartialEq for NetworkResources
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more