pub struct Worker { /* fields omitted */ }
Thread worker
This is passed to the around_worker
callback set on Builder
. This
callback is only expected to call run
on it.
Returns a reference to the worker's identifier.
This identifier is unique scoped by the thread pool. It is possible that
different thread pool instances share worker identifier values.
Run the worker
This function blocks until the worker is shutting down.
Executes the destructor for this type. Read more
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more