pub struct BufferConfig {
pub min_buffer_time: f64,
pub max_buffer_time: f64,
pub rebuffer_threshold: f64,
pub max_memory_bytes: usize,
pub prefetch_enabled: bool,
pub prefetch_count: usize,
}Expand description
Buffer configuration
Fields§
§min_buffer_time: f64Minimum buffer before playback (seconds)
max_buffer_time: f64Maximum buffer level (seconds)
rebuffer_threshold: f64Rebuffer threshold (seconds)
max_memory_bytes: usizeMaximum memory usage (bytes)
prefetch_enabled: boolEnable lookahead prefetching
prefetch_count: usizeNumber of segments to prefetch
Trait Implementations§
Source§impl Clone for BufferConfig
impl Clone for BufferConfig
Source§fn clone(&self) -> BufferConfig
fn clone(&self) -> BufferConfig
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 BufferConfig
impl Debug for BufferConfig
Auto Trait Implementations§
impl Freeze for BufferConfig
impl RefUnwindSafe for BufferConfig
impl Send for BufferConfig
impl Sync for BufferConfig
impl Unpin for BufferConfig
impl UnsafeUnpin for BufferConfig
impl UnwindSafe for BufferConfig
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