pub struct DispatchError {
pub reason: String,
pub retry_after: Option<Duration>,
}Expand description
Dispatch error surface. Carries the operator-readable reason
and an optional retry hint — the executor honors the hint
by re-queuing the action through admit() after the hint
elapses (if any).
Fields§
§reason: StringOperator-readable reason.
retry_after: Option<Duration>Optional retry hint — if Some, the executor re-enters
the action through admit() after this duration. None
drops the action (the typical case — admit is the retry
surface).
Implementations§
Trait Implementations§
Source§impl Clone for DispatchError
impl Clone for DispatchError
Source§fn clone(&self) -> DispatchError
fn clone(&self) -> DispatchError
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 DispatchError
impl Debug for DispatchError
Source§impl PartialEq for DispatchError
impl PartialEq for DispatchError
Source§fn eq(&self, other: &DispatchError) -> bool
fn eq(&self, other: &DispatchError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DispatchError
impl StructuralPartialEq for DispatchError
Auto Trait Implementations§
impl Freeze for DispatchError
impl RefUnwindSafe for DispatchError
impl Send for DispatchError
impl Sync for DispatchError
impl Unpin for DispatchError
impl UnsafeUnpin for DispatchError
impl UnwindSafe for DispatchError
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,
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.