pub struct TaskQueue { /* private fields */ }
Expand description
A queue that executes tasks sequentially one after the other ensuring order and that no task runs at the same time as another.
Note that tokio’s semaphore doesn’t seem to maintain order and so we can’t use that in the code that uses this or use that here.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TaskQueue
impl Send for TaskQueue
impl Sync for TaskQueue
impl Unpin for TaskQueue
impl !UnwindSafe for TaskQueue
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