Struct trillium_testing::SpawnHandle
source · pub struct SpawnHandle<F>(/* private fields */);
Expand description
A droppable future
This only exists because of the #[must_use] on futures. The task will run to completion whether or not this future is awaited.
Trait Implementations§
source§impl<F: Debug> Debug for SpawnHandle<F>
impl<F: Debug> Debug for SpawnHandle<F>
source§impl<F> IntoFuture for SpawnHandle<F>where
F: Future,
impl<F> IntoFuture for SpawnHandle<F>where
F: Future,
§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<F> RefUnwindSafe for SpawnHandle<F>where
F: RefUnwindSafe,
impl<F> Send for SpawnHandle<F>where
F: Send,
impl<F> Sync for SpawnHandle<F>where
F: Sync,
impl<F> Unpin for SpawnHandle<F>where
F: Unpin,
impl<F> UnwindSafe for SpawnHandle<F>where
F: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more