#[repr(C, packed(4))]pub struct TcNetemSlot {
pub min_delay: i64,
pub max_delay: i64,
pub max_packets: i32,
pub max_bytes: i32,
pub dist_delay: i64,
pub dist_jitter: i64,
}Available on crate feature
tc only.Fields§
§min_delay: i64§max_delay: i64§max_packets: i32§max_bytes: i32§dist_delay: i64§dist_jitter: i64Implementations§
Source§impl TcNetemSlot
impl TcNetemSlot
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; 40]) -> Self
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn from_slice(buf: &[u8]) -> &Self
pub fn as_array(&self) -> &[u8; 40]
pub fn from_array(buf: &[u8; 40]) -> &Self
pub fn into_array(self) -> [u8; 40]
pub const fn len() -> usize
Trait Implementations§
Source§impl Clone for TcNetemSlot
impl Clone for TcNetemSlot
Source§impl Debug for TcNetemSlot
impl Debug for TcNetemSlot
Auto Trait Implementations§
impl Freeze for TcNetemSlot
impl RefUnwindSafe for TcNetemSlot
impl Send for TcNetemSlot
impl Sync for TcNetemSlot
impl Unpin for TcNetemSlot
impl UnsafeUnpin for TcNetemSlot
impl UnwindSafe for TcNetemSlot
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