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.
Acquires a permit where the tasks are executed one at a time
and in the order that they were acquired.
Alternate API that acquires a permit internally
for the duration of the future.
Formats the value using the given formatter.
Read more
Returns the “default value” for a type.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.