#[non_exhaustive]pub enum SessionRetryAction {
Keep,
Rotate,
Retire,
}Expand description
Session disposition for a strategy-authorized retry.
§Examples
use millipede_core::retry_strategy::SessionRetryAction;
let action = SessionRetryAction::Rotate;
assert_ne!(action, SessionRetryAction::Keep);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.
Keep
Keep the current session classification.
Rotate
Rotate the session for the next attempt.
Retire
Retire the session. In Phase 3 the engine accounts this like Self::Rotate; kind-level
retirement relies on the kind’s own classification and is revisited in Phase 4.
Trait Implementations§
Source§impl Clone for SessionRetryAction
impl Clone for SessionRetryAction
Source§fn clone(&self) -> SessionRetryAction
fn clone(&self) -> SessionRetryAction
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 moreimpl Copy for SessionRetryAction
Source§impl Debug for SessionRetryAction
impl Debug for SessionRetryAction
Source§impl Default for SessionRetryAction
impl Default for SessionRetryAction
Source§fn default() -> SessionRetryAction
fn default() -> SessionRetryAction
Returns the “default value” for a type. Read more
impl Eq for SessionRetryAction
Source§impl PartialEq for SessionRetryAction
impl PartialEq for SessionRetryAction
impl StructuralPartialEq for SessionRetryAction
Auto Trait Implementations§
impl Freeze for SessionRetryAction
impl RefUnwindSafe for SessionRetryAction
impl Send for SessionRetryAction
impl Sync for SessionRetryAction
impl Unpin for SessionRetryAction
impl UnsafeUnpin for SessionRetryAction
impl UnwindSafe for SessionRetryAction
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