pub struct Handle { /* private fields */ }Implementations
sourceimpl Handle
impl Handle
pub fn spawn<F, Output>(&self, future: F) -> JoinHandle<Output>ⓘNotable traits for JoinHandle<O>impl<O> Future for JoinHandle<O> type Output = O; where
F: Future<Output = Output> + Send + 'static,
Output: Send + 'static,
pub fn spawn_primary<F, Output>(&self, future: F) -> JoinHandle<Output>ⓘNotable traits for JoinHandle<O>impl<O> Future for JoinHandle<O> type Output = O; where
F: Future<Output = Output> + Send + 'static,
Output: Send + 'static,
pub fn enter<F: FnOnce() -> O, O>(&self, f: F) -> O
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Handle
impl Send for Handle
impl Sync for Handle
impl Unpin for Handle
impl !UnwindSafe for Handle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more