pub struct DispatchResult {
pub task_id: Uuid,
/* private fields */
}Expand description
Handle to an in-flight task. Await it to get the worker’s result.
Fields§
§task_id: UuidImplementations§
Source§impl DispatchResult
impl DispatchResult
pub async fn await_result(self) -> Result<TaskResult, DispatchError>
pub async fn await_with_timeout( self, timeout: Duration, ) -> Result<TaskResult, DispatchError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DispatchResult
impl !RefUnwindSafe for DispatchResult
impl Send for DispatchResult
impl Sync for DispatchResult
impl Unpin for DispatchResult
impl UnsafeUnpin for DispatchResult
impl !UnwindSafe for DispatchResult
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