Struct cgroups_rs::NetworkResources[][src]

pub struct NetworkResources {
    pub class_id: Option<u64>,
    pub priorities: Vec<NetworkPriority>,
}

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

impl Clone for NetworkResources[src]

impl Debug for NetworkResources[src]

impl Default for NetworkResources[src]

impl Eq for NetworkResources[src]

impl PartialEq<NetworkResources> for NetworkResources[src]

impl StructuralEq for NetworkResources[src]

impl StructuralPartialEq for NetworkResources[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.