pub enum WaitOutcome {
Terminal(Value),
TimedOut {
attached: bool,
},
}Expand description
The current attach’s outcome, or a bounded timeout — see
attach::WaitOutcome, which this re-exports as the return type of
Tasks::wait and Tasks::wait_message.
What a bounded wait produced: the settled payload, or a timeout with
enough said about it to retry sensibly.
Variants§
Terminal(Value)
The raw terminal payload, as terminal.json holds it — or, for
wait_for_message, the correlated reply or terminal-tagged payload
message_payload_for_dispatch resolved.
TimedOut
The bounded wait elapsed; attached reports whether a live executor
held the lock at that moment.
Trait Implementations§
Source§impl Clone for WaitOutcome
impl Clone for WaitOutcome
Source§fn clone(&self) -> WaitOutcome
fn clone(&self) -> WaitOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WaitOutcome
impl Debug for WaitOutcome
Source§impl PartialEq for WaitOutcome
impl PartialEq for WaitOutcome
impl StructuralPartialEq for WaitOutcome
Auto Trait Implementations§
impl Freeze for WaitOutcome
impl RefUnwindSafe for WaitOutcome
impl Send for WaitOutcome
impl Sync for WaitOutcome
impl Unpin for WaitOutcome
impl UnsafeUnpin for WaitOutcome
impl UnwindSafe for WaitOutcome
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