pub struct AdaptiveController { /* private fields */ }Implementations§
Source§impl AdaptiveController
impl AdaptiveController
pub fn new(file_size: u64, initial_segments: usize) -> Self
pub fn with_config( file_size: u64, initial_segments: usize, max_segments: usize, min_segment_size: u64, ) -> Self
pub fn current_segments(&self) -> usize
pub fn evaluate( &self, bdp: Option<u64>, _current_speed: f64, ) -> Option<SegmentAdjustment>
pub fn should_split_slow_segment( &self, segment_speed: f64, avg_speed: f64, remaining_bytes: u64, ) -> bool
pub fn record_split(&self)
Auto Trait Implementations§
impl !Freeze for AdaptiveController
impl !RefUnwindSafe for AdaptiveController
impl Send for AdaptiveController
impl Sync for AdaptiveController
impl Unpin for AdaptiveController
impl UnwindSafe for AdaptiveController
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