pub struct RateControl { /* private fields */ }Implementations§
Source§impl RateControl
impl RateControl
pub fn get_pkt_send_period(&self) -> Duration
pub fn get_congestion_window_size(&self) -> u32
pub fn get_ack_pkt_interval(&self) -> usize
pub fn get_ack_period(&self) -> Duration
pub fn set_rtt(&mut self, rtt: Duration)
pub fn set_rcv_rate(&mut self, pkt_per_sec: u32)
pub fn set_bandwidth(&mut self, pkt_per_sec: u32)
pub fn set_pkt_interval(&mut self, nb_pkts: usize)
pub fn on_ack(&mut self, ack: SeqNumber)
pub fn on_loss(&mut self, loss_seq: SeqNumber)
pub fn set_curr_snd_seq_number(&mut self, seq: SeqNumber)
pub fn on_timeout(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RateControl
impl RefUnwindSafe for RateControl
impl Send for RateControl
impl Sync for RateControl
impl Unpin for RateControl
impl UnwindSafe for RateControl
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