#[repr(C, packed(4))]pub struct TcNetemQopt {
pub latency: u32,
pub limit: u32,
pub loss: u32,
pub gap: u32,
pub duplicate: u32,
pub jitter: u32,
}Available on crate feature
tc only.Fields§
§latency: u32Added delay in microseconds
limit: u32Fifo limit in packets
loss: u32Random packet loss (0=none, ~0=100%)
gap: u32Re-ordering gap (0 for none)
duplicate: u32Random packet duplication (0=none, ~0=100%)
jitter: u32Random jitter latency in microseconds
Implementations§
Source§impl TcNetemQopt
impl TcNetemQopt
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; 24]) -> Self
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn from_slice(buf: &[u8]) -> &Self
pub fn as_array(&self) -> &[u8; 24]
pub fn from_array(buf: &[u8; 24]) -> &Self
pub fn into_array(self) -> [u8; 24]
pub const fn len() -> usize
Trait Implementations§
Source§impl Clone for TcNetemQopt
impl Clone for TcNetemQopt
Source§impl Debug for TcNetemQopt
impl Debug for TcNetemQopt
Auto Trait Implementations§
impl Freeze for TcNetemQopt
impl RefUnwindSafe for TcNetemQopt
impl Send for TcNetemQopt
impl Sync for TcNetemQopt
impl Unpin for TcNetemQopt
impl UnsafeUnpin for TcNetemQopt
impl UnwindSafe for TcNetemQopt
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