pub struct SerialExecutor { }
Expand description
Bounded serialized worker. Tasks own their captures; rejected tasks are
dropped without execution. Panics are contained, and accepted tasks drain on
destruction. Joining may block. Self-teardown detaches the joining handle;
the worker retains its receiver and completes safely.
Zero capacity is rejected. Capacity excludes the currently running task.
Nonblocking queue submission. Task destruction can run consumer code.
Executes the destructor for this type.
Read more
Execute the destructor for this type, but different to
Drop::drop, it requires
self
to be pinned.
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.