pub struct PrefetchQueue { /* private fields */ }Expand description
Priority queue for prefetch targets
Implementations§
Source§impl PrefetchQueue
impl PrefetchQueue
Sourcepub async fn enqueue(&self, target: PrefetchTarget)
pub async fn enqueue(&self, target: PrefetchTarget)
Enqueues a prefetch target
Sourcepub async fn dequeue(&self) -> Option<PrefetchTarget>
pub async fn dequeue(&self) -> Option<PrefetchTarget>
Dequeues the highest priority target
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for PrefetchQueue
impl !RefUnwindSafe for PrefetchQueue
impl !UnwindSafe for PrefetchQueue
impl Send for PrefetchQueue
impl Sync for PrefetchQueue
impl Unpin for PrefetchQueue
impl UnsafeUnpin for PrefetchQueue
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