std
::
thread
::
pool
::
internal
::
Task
Fields
callback
data
Methods
new
new_joinable
run
Struct
std
::
thread
::
pool
::
internal
::
Task
struct
Task
{ ... }
source
Fields
callback:
fn
(&
mut
void
)
data: &
mut
void
Methods
impl
Task
{ ... }
fn
new
<F>(f: F) ->
Task
F:
Fn
()
source
fn
new_joinable
<T, F>(f: F) -> (
Task
,
TaskHandle
<T>)
F:
Fn
() -> T
source
fn
run
(self: &
Task
)
source