pub enum TypeOfService {
    Normal,
    MinimizeDelay,
    MaximizeReliability,
    MaximizeThroughput,
}Expand description
A packet’s type of service (TOS) indicates its desired queuing priority. This may be used by
Shadow’s interface qdisc to prioritize packets that it sends out to the network. For example,
in the pfifo_fast qdisc, packets in lower priority bands would be sent ahead of others.
Variants§
Normal
Corresponds to “Best Effort” priority (band 1).
MinimizeDelay
Corresponds to “Interactive” priority (band 0).
MaximizeReliability
Corresponds to “Best Effort” priority (band 1).
MaximizeThroughput
Corresponds to “Bulk” priority (band 2).
Trait Implementations§
Source§impl Clone for TypeOfService
 
impl Clone for TypeOfService
Source§fn clone(&self) -> TypeOfService
 
fn clone(&self) -> TypeOfService
Returns a duplicate 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 TypeOfService
 
impl Debug for TypeOfService
Source§impl PartialEq for TypeOfService
 
impl PartialEq for TypeOfService
impl Copy for TypeOfService
impl StructuralPartialEq for TypeOfService
Auto Trait Implementations§
impl Freeze for TypeOfService
impl RefUnwindSafe for TypeOfService
impl Send for TypeOfService
impl Sync for TypeOfService
impl Unpin for TypeOfService
impl UnwindSafe for TypeOfService
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more