pub struct Spawner<'a, Ret> { /* fields omitted */ }
pub fn spawn<F>(&self, f: F) -> Result<(), SpawnError> where
F: Into<FutureObj<'a, Ret>>,
Performs copy-assignment from source
. Read more
Spawns a future that will be run to completion. Read more
Determines whether the executor is able to spawn new tasks. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The alignment of pointer.
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
Initializes a with the given initializer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
impl<Sp> SpawnExt for Sp where
Sp: Spawn + ?Sized,
Spawns a task that polls the given future with output ()
to
completion. Read more
Spawns a task that polls the given future to completion and returns a
future that resolves to the spawned future’s output. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.