pub struct ProgressiveLoadingConfig {
pub enable: bool,
pub strategy: LoadingStrategy,
pub chunk_size: usize,
pub preloading: PreloadingConfig,
pub streaming: bool,
}
Expand description
Progressive loading configuration
Fields§
§enable: bool
Enable progressive loading
strategy: LoadingStrategy
Loading strategy
chunk_size: usize
Chunk size in bytes
preloading: PreloadingConfig
Preloading configuration
streaming: bool
Enable streaming
Implementations§
Source§impl ProgressiveLoadingConfig
impl ProgressiveLoadingConfig
Sourcepub fn fast_start() -> Self
pub fn fast_start() -> Self
Create configuration for fast initial loading
Sourcepub fn low_bandwidth() -> Self
pub fn low_bandwidth() -> Self
Create configuration for bandwidth-constrained environments
Sourcepub fn has_preloading(&self) -> bool
pub fn has_preloading(&self) -> bool
Check if preloading is enabled
Sourcepub fn preload_memory_overhead(&self, total_size: usize) -> usize
pub fn preload_memory_overhead(&self, total_size: usize) -> usize
Get estimated memory overhead for preloading
Trait Implementations§
Source§impl Clone for ProgressiveLoadingConfig
impl Clone for ProgressiveLoadingConfig
Source§fn clone(&self) -> ProgressiveLoadingConfig
fn clone(&self) -> ProgressiveLoadingConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ProgressiveLoadingConfig
impl Debug for ProgressiveLoadingConfig
Auto Trait Implementations§
impl Freeze for ProgressiveLoadingConfig
impl RefUnwindSafe for ProgressiveLoadingConfig
impl Send for ProgressiveLoadingConfig
impl Sync for ProgressiveLoadingConfig
impl Unpin for ProgressiveLoadingConfig
impl UnwindSafe for ProgressiveLoadingConfig
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more