pub struct ThroughputAlgorithm { /* private fields */ }Expand description
Throughput-based ABR algorithm
Implementations§
Trait Implementations§
Source§impl AbrAlgorithm for ThroughputAlgorithm
impl AbrAlgorithm for ThroughputAlgorithm
Source§fn select_rendition<'a>(
&self,
renditions: &'a [Rendition],
context: &AbrContext,
) -> Option<&'a Rendition>
fn select_rendition<'a>( &self, renditions: &'a [Rendition], context: &AbrContext, ) -> Option<&'a Rendition>
Select the best rendition given current conditions
Source§fn update(&mut self, measurement: &BandwidthMeasurement)
fn update(&mut self, measurement: &BandwidthMeasurement)
Update algorithm state with new measurement
Auto Trait Implementations§
impl Freeze for ThroughputAlgorithm
impl RefUnwindSafe for ThroughputAlgorithm
impl Send for ThroughputAlgorithm
impl Sync for ThroughputAlgorithm
impl Unpin for ThroughputAlgorithm
impl UnsafeUnpin for ThroughputAlgorithm
impl UnwindSafe for ThroughputAlgorithm
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