pub struct ProgressiveFileManager { /* private fields */ }Expand description
Progressive file manager that creates and manages progressive file instances
Implementations§
Source§impl ProgressiveFileManager
impl ProgressiveFileManager
Sourcepub fn new(
config: ProgressiveConfig,
chunk_loader: Arc<dyn ChunkLoader + Send + Sync>,
) -> Self
pub fn new( config: ProgressiveConfig, chunk_loader: Arc<dyn ChunkLoader + Send + Sync>, ) -> Self
Create a new progressive file manager
Sourcepub async fn get_or_create_progressive_file(
&self,
ekey: EKey,
size_hint: SizeHint,
) -> Arc<ProgressiveFile>
pub async fn get_or_create_progressive_file( &self, ekey: EKey, size_hint: SizeHint, ) -> Arc<ProgressiveFile>
Create or get existing progressive file
Sourcepub async fn remove_progressive_file(&self, ekey: &EKey)
pub async fn remove_progressive_file(&self, ekey: &EKey)
Remove a progressive file from management (cleanup)
Sourcepub async fn get_global_stats(&self) -> Vec<(EKey, LoadingStats)>
pub async fn get_global_stats(&self) -> Vec<(EKey, LoadingStats)>
Get statistics for all active progressive files
Sourcepub async fn cleanup_inactive_files(&self, max_idle_time: Duration)
pub async fn cleanup_inactive_files(&self, max_idle_time: Duration)
Clean up inactive files (those not accessed recently)
Auto Trait Implementations§
impl Freeze for ProgressiveFileManager
impl !RefUnwindSafe for ProgressiveFileManager
impl Send for ProgressiveFileManager
impl Sync for ProgressiveFileManager
impl Unpin for ProgressiveFileManager
impl !UnwindSafe for ProgressiveFileManager
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