pub struct PrefetchScheduler { /* private fields */ }Expand description
Prefetch scheduler
Implementations§
Source§impl PrefetchScheduler
impl PrefetchScheduler
Sourcepub fn schedule(&mut self, coord: TileCoord, priority: RequestPriority)
pub fn schedule(&mut self, coord: TileCoord, priority: RequestPriority)
Schedules a tile for prefetch
Sourcepub fn pending_count(&self) -> usize
pub fn pending_count(&self) -> usize
Returns the number of pending prefetches
Sourcepub fn active_count(&self) -> usize
pub fn active_count(&self) -> usize
Returns the number of active prefetches
Auto Trait Implementations§
impl Freeze for PrefetchScheduler
impl RefUnwindSafe for PrefetchScheduler
impl Send for PrefetchScheduler
impl Sync for PrefetchScheduler
impl Unpin for PrefetchScheduler
impl UnsafeUnpin for PrefetchScheduler
impl UnwindSafe for PrefetchScheduler
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