pub struct PushTcNetemQopt { /* private fields */ }Available on crate feature
tc only.Implementations§
Source§impl PushTcNetemQopt
impl PushTcNetemQopt
Sourcepub fn new_from_slice(other: &[u8]) -> Option<Self>
pub fn new_from_slice(other: &[u8]) -> Option<Self>
Copy from contents from other slice
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
pub const fn len() -> usize
Sourcepub fn set_latency(&mut self, value: u32)
pub fn set_latency(&mut self, value: u32)
Added delay in microseconds
Sourcepub fn set_duplicate(&mut self, value: u32)
pub fn set_duplicate(&mut self, value: u32)
Random packet duplication (0=none, ~0=100%)
Sourcepub fn set_jitter(&mut self, value: u32)
pub fn set_jitter(&mut self, value: u32)
Random jitter latency in microseconds
Trait Implementations§
Source§impl Clone for PushTcNetemQopt
impl Clone for PushTcNetemQopt
Source§fn clone(&self) -> PushTcNetemQopt
fn clone(&self) -> PushTcNetemQopt
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 PushTcNetemQopt
impl Debug for PushTcNetemQopt
Auto Trait Implementations§
impl Freeze for PushTcNetemQopt
impl RefUnwindSafe for PushTcNetemQopt
impl Send for PushTcNetemQopt
impl Sync for PushTcNetemQopt
impl Unpin for PushTcNetemQopt
impl UnwindSafe for PushTcNetemQopt
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