pub struct WorkQueue { /* private fields */ }Expand description
Work queue for a single GPU device
Implementations§
Source§impl WorkQueue
impl WorkQueue
Sourcepub async fn submit_work<F, T>(&self, work: F) -> Result<T>
pub async fn submit_work<F, T>(&self, work: F) -> Result<T>
Submit work to the queue
Sourcepub fn pending_count(&self) -> usize
pub fn pending_count(&self) -> usize
Get number of pending tasks
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WorkQueue
impl !RefUnwindSafe for WorkQueue
impl Send for WorkQueue
impl Sync for WorkQueue
impl Unpin for WorkQueue
impl UnsafeUnpin for WorkQueue
impl !UnwindSafe for WorkQueue
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