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 for NetworkResources
impl PartialEq for NetworkResources
impl Eq for NetworkResources
impl StructuralPartialEq for NetworkResources
Auto Trait Implementations§
impl Freeze for NetworkResources
impl RefUnwindSafe for NetworkResources
impl Send for NetworkResources
impl Sync for NetworkResources
impl Unpin for NetworkResources
impl UnwindSafe for NetworkResources
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