pub struct AsyncTaskQueue<Args, R> { /* private fields */ }Implementations§
Source§impl<Args, R> AsyncTaskQueue<Args, R>
impl<Args, R> AsyncTaskQueue<Args, R>
pub fn new() -> Self
pub fn push(&self, task: PendingAsyncTask<Args, R>)
pub fn pop(&self) -> Option<PendingAsyncTask<Args, R>>
pub fn pop_blocking(&self) -> PendingAsyncTask<Args, R>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<Args, R> Freeze for AsyncTaskQueue<Args, R>
impl<Args, R> RefUnwindSafe for AsyncTaskQueue<Args, R>
impl<Args, R> Send for AsyncTaskQueue<Args, R>
impl<Args, R> Sync for AsyncTaskQueue<Args, R>
impl<Args, R> Unpin for AsyncTaskQueue<Args, R>
impl<Args, R> UnsafeUnpin for AsyncTaskQueue<Args, R>
impl<Args, R> UnwindSafe for AsyncTaskQueue<Args, R>
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