pub struct TurnReceipt(/* private fields */);Expand description
Completion receipt for one serialized input.
Implementations§
Source§impl TurnReceipt
impl TurnReceipt
Sourcepub fn outcome(&self) -> Option<TurnOutcome>
pub fn outcome(&self) -> Option<TurnOutcome>
Return the outcome without blocking, if the turn has finished.
§Panics
Panics if receipt synchronization was poisoned.
Sourcepub fn wait(self) -> TurnOutcome
pub fn wait(self) -> TurnOutcome
Block until the turn completes or its executor is poisoned.
§Panics
Panics if receipt synchronization was poisoned.
Auto Trait Implementations§
impl Freeze for TurnReceipt
impl RefUnwindSafe for TurnReceipt
impl Send for TurnReceipt
impl Sync for TurnReceipt
impl Unpin for TurnReceipt
impl UnsafeUnpin for TurnReceipt
impl UnwindSafe for TurnReceipt
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