Trait Detach

Source
pub trait Detach: Sized {
    // Provided method
    fn detach(self) { ... }
}
Expand description

Detaches the task related to the join handle to let it keep running in the background.

Provided Methods§

Source

fn detach(self)

Detaches the task to let it keep running in the background.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<F> Detach for JoinHandle<F>

Source§

impl<T> Detach for JoinHandle<T>

Source§

impl<T> Detach for Task<T>

Source§

impl<T> Detach for JoinHandle<T>

Implementors§

Source§

impl<O> Detach for AsyncStdAfterHandle<O>
where O: 'static,

Source§

impl<O> Detach for SmolAfterHandle<O>
where O: 'static,

Source§

impl<O> Detach for TokioAfterHandle<O>
where O: 'static,

Source§

impl<O> Detach for WasmAfterHandle<O>
where O: 'static,

Source§

impl<T> Detach for WasmJoinHandle<T>