#[repr(C, packed(4))]pub struct TcRedQopt {
pub limit: u32,
pub qth_min: u32,
pub qth_max: u32,
pub Wlog: u8,
pub Plog: u8,
pub Scell_log: u8,
pub flags: u8,
}Available on crate feature
tc only.Fields§
§limit: u32Hard queue length in packets
qth_min: u32Min average threshold in packets
qth_max: u32Max average threshold in packets
Wlog: u8log(W)
Plog: u8log(P_max / (qth-max - qth-min))
Scell_log: u8Cell size for idle damping
flags: u8Implementations§
Source§impl TcRedQopt
impl TcRedQopt
Sourcepub fn new_from_slice(other: &[u8]) -> Option<Self>
pub fn new_from_slice(other: &[u8]) -> Option<Self>
Copy from contents from slice
Sourcepub fn new_from_zeroed(other: &[u8]) -> Self
pub fn new_from_zeroed(other: &[u8]) -> Self
Copy from contents from another slice, padding with zeros or truncating when needed
pub fn new_from_array(buf: [u8; 16]) -> Self
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn from_slice(buf: &[u8]) -> &Self
pub fn as_array(&self) -> &[u8; 16]
pub fn from_array(buf: &[u8; 16]) -> &Self
pub fn into_array(self) -> [u8; 16]
pub const fn len() -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TcRedQopt
impl RefUnwindSafe for TcRedQopt
impl Send for TcRedQopt
impl Sync for TcRedQopt
impl Unpin for TcRedQopt
impl UnsafeUnpin for TcRedQopt
impl UnwindSafe for TcRedQopt
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