pub enum CompletionWaitError {
ChannelClosed,
AttachmentReplaced,
AuthorityUnavailable(String),
}Expand description
Mechanical failure while waiting for completion plumbing.
This is intentionally separate from CompletionOutcome: a closed waiter
channel or missing generated completion authority is not a public runtime
result class.
Variants§
ChannelClosed
AttachmentReplaced
The exact executor attachment that admitted this request was replaced before its waiter resolved. The old input is durably cancelled; a retry is a new request owned by the successor attachment. Replacement execution must never be reported as the old request’s success.
Implementations§
Source§impl CompletionWaitError
impl CompletionWaitError
pub fn wait_failure_observation( &self, ) -> RuntimeCompletionWaitFailureObservation
Sourcepub const fn is_attachment_replaced(&self) -> bool
pub const fn is_attachment_replaced(&self) -> bool
Stable typed predicate for retryable attachment replacement. Surfaces must not infer this class from an error string.
Trait Implementations§
Source§impl Clone for CompletionWaitError
impl Clone for CompletionWaitError
Source§fn clone(&self) -> CompletionWaitError
fn clone(&self) -> CompletionWaitError
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 CompletionWaitError
impl Debug for CompletionWaitError
Source§impl Display for CompletionWaitError
impl Display for CompletionWaitError
impl Eq for CompletionWaitError
Source§impl Error for CompletionWaitError
impl Error for CompletionWaitError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for CompletionWaitError
impl PartialEq for CompletionWaitError
impl StructuralPartialEq for CompletionWaitError
Auto Trait Implementations§
impl Freeze for CompletionWaitError
impl RefUnwindSafe for CompletionWaitError
impl Send for CompletionWaitError
impl Sync for CompletionWaitError
impl Unpin for CompletionWaitError
impl UnsafeUnpin for CompletionWaitError
impl UnwindSafe for CompletionWaitError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CoreExecutorTurnFinalizationGuard for Twhere
T: Send,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.