[−][src]Struct futures::unsync::oneshot::SpawnHandle
Handle returned from the spawn
function.
This handle is a future representing the completion of a different future on
a separate executor. Created through the oneshot::spawn
function this
handle will resolve when the future provided to spawn
resolves on the
Executor
instance provided to that function.
If this handle is dropped then the future will automatically no longer be
polled and is scheduled to be dropped. This can be canceled with the
forget
function, however.
Methods
impl<T, E> SpawnHandle<T, E>
[src][−]
pub fn forget(self)
[src][−]
Drop this future without canceling the underlying future.
When SpawnHandle
is dropped, the spawned future will be canceled as
well if the future hasn't already resolved. This function can be used
when to drop this future but keep executing the underlying future.
Trait Implementations
impl<T, E> Future for SpawnHandle<T, E>
[src][+]
impl<T: Debug, E: Debug> Debug for SpawnHandle<T, E>
[src][+]
Auto Trait Implementations
impl<T, E> Unpin for SpawnHandle<T, E> where
E: Unpin,
T: Unpin,
E: Unpin,
T: Unpin,
impl<T, E> !Send for SpawnHandle<T, E>
impl<T, E> !Sync for SpawnHandle<T, E>
impl<T, E> !UnwindSafe for SpawnHandle<T, E>
impl<T, E> !RefUnwindSafe for SpawnHandle<T, E>
Blanket Implementations
impl<F> IntoFuture for F where
F: Future,
[src][+]
F: Future,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> From<T> for T
[src][+]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,