pub struct LinkConditioner<P: Eq> {
pub time_queue: ReadyBuffer<Instant, P>,
/* private fields */
}Fields§
§time_queue: ReadyBuffer<Instant, P>Implementations§
Source§impl<P: Eq> LinkConditioner<P>
impl<P: Eq> LinkConditioner<P>
pub fn new(config: LinkConditionerConfig) -> Self
Trait Implementations§
Source§impl<P: Clone + Eq> Clone for LinkConditioner<P>
impl<P: Clone + Eq> Clone for LinkConditioner<P>
Source§fn clone(&self) -> LinkConditioner<P>
fn clone(&self) -> LinkConditioner<P>
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 moreAuto Trait Implementations§
impl<P> Freeze for LinkConditioner<P>
impl<P> RefUnwindSafe for LinkConditioner<P>where
P: RefUnwindSafe,
impl<P> Send for LinkConditioner<P>where
P: Send,
impl<P> Sync for LinkConditioner<P>where
P: Sync,
impl<P> Unpin for LinkConditioner<P>where
P: Unpin,
impl<P> UnwindSafe for LinkConditioner<P>where
P: UnwindSafe,
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.