pub struct PrefetchManager { /* private fields */ }Expand description
Prefetch manager for predictive page loading.
Implementations§
Source§impl PrefetchManager
impl PrefetchManager
Sourcepub async fn prefetch_many<F, Fut>(&self, urls: Vec<String>, fetcher: F)
pub async fn prefetch_many<F, Fut>(&self, urls: Vec<String>, fetcher: F)
Prefetch multiple URLs.
Sourcepub fn max_concurrent(&self) -> usize
pub fn max_concurrent(&self) -> usize
Get the maximum concurrent prefetches.
Trait Implementations§
Source§impl Debug for PrefetchManager
impl Debug for PrefetchManager
Auto Trait Implementations§
impl Freeze for PrefetchManager
impl !RefUnwindSafe for PrefetchManager
impl Send for PrefetchManager
impl Sync for PrefetchManager
impl Unpin for PrefetchManager
impl !UnwindSafe for PrefetchManager
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