pub struct StrategyError {
pub code: StrategyErrorCode,
pub stage: &'static str,
pub component: &'static str,
pub retryable: bool,
pub recovery: &'static str,
}Expand description
Definition, binding, projection, and error vocabulary the store and the runtime both name. It is defined by the pure machine crate so neither of them has to own the other’s identity.
Fields§
§code: StrategyErrorCode§stage: &'static str§component: &'static str§retryable: bool§recovery: &'static strImplementations§
Source§impl StrategyError
impl StrategyError
pub const fn new( code: StrategyErrorCode, stage: &'static str, component: &'static str, retryable: bool, recovery: &'static str, ) -> StrategyError
Trait Implementations§
Source§impl Clone for StrategyError
impl Clone for StrategyError
Source§fn clone(&self) -> StrategyError
fn clone(&self) -> StrategyError
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 StrategyError
impl Debug for StrategyError
Source§impl Display for StrategyError
impl Display for StrategyError
impl Eq for StrategyError
Source§impl Error for StrategyError
impl Error for StrategyError
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 StrategyError
impl PartialEq for StrategyError
impl StructuralPartialEq for StrategyError
Auto Trait Implementations§
impl Forget for StrategyError
impl Freeze for StrategyError
impl Move for StrategyError
impl RefUnwindSafe for StrategyError
impl Send for StrategyError
impl Sync for StrategyError
impl Unpin for StrategyError
impl UnsafeUnpin for StrategyError
impl UnwindSafe for StrategyError
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.