#[non_exhaustive]pub enum AttemptOutcome {
Succeeded,
Retried {
code: String,
},
FellBack {
code: String,
},
Failed {
code: String,
},
Cancelled,
}Expand description
How one attempt ended.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Succeeded
The provider answered.
Retried
It failed and the same provider was tried again.
FellBack
It failed and routing moved to the next candidate.
Failed
It failed and the stage was abandoned.
Cancelled
The caller cancelled.
Implementations§
Source§impl AttemptOutcome
impl AttemptOutcome
Sourcepub fn to_core_outcome(&self) -> ProviderAttemptOutcome
pub fn to_core_outcome(&self) -> ProviderAttemptOutcome
Maps onto the outcome the core replay record stores.
Trait Implementations§
Source§impl Clone for AttemptOutcome
impl Clone for AttemptOutcome
Source§impl Debug for AttemptOutcome
impl Debug for AttemptOutcome
Source§impl<'de> Deserialize<'de> for AttemptOutcome
impl<'de> Deserialize<'de> for AttemptOutcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AttemptOutcome
Source§impl PartialEq for AttemptOutcome
impl PartialEq for AttemptOutcome
Source§impl Serialize for AttemptOutcome
impl Serialize for AttemptOutcome
impl StructuralPartialEq for AttemptOutcome
Auto Trait Implementations§
impl Freeze for AttemptOutcome
impl RefUnwindSafe for AttemptOutcome
impl Send for AttemptOutcome
impl Sync for AttemptOutcome
impl Unpin for AttemptOutcome
impl UnsafeUnpin for AttemptOutcome
impl UnwindSafe for AttemptOutcome
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.