pub struct RayonTaskHandle<R, E> { /* private fields */ }Expand description
Handle returned by crate::RayonExecutorService for accepted tasks.
This handle supports blocking Self::get, asynchronous .await, and
best-effort cancellation before a Rayon worker starts the task.
Implementations§
Source§impl<R, E> RayonTaskHandle<R, E>
impl<R, E> RayonTaskHandle<R, E>
Sourcepub fn get(self) -> TaskResult<R, E>
pub fn get(self) -> TaskResult<R, E>
Waits for the task to finish and returns its final result.
§Returns
The final task result reported through the underlying TaskHandle.
Trait Implementations§
Auto Trait Implementations§
impl<R, E> Freeze for RayonTaskHandle<R, E>
impl<R, E> !RefUnwindSafe for RayonTaskHandle<R, E>
impl<R, E> Send for RayonTaskHandle<R, E>
impl<R, E> Sync for RayonTaskHandle<R, E>
impl<R, E> Unpin for RayonTaskHandle<R, E>
impl<R, E> UnsafeUnpin for RayonTaskHandle<R, E>
impl<R, E> !UnwindSafe for RayonTaskHandle<R, E>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more