pub enum SafetyLevel {
Pure,
Idempotent,
Transactional,
}Expand description
Classification of a task’s side-effect safety characteristics.
This classification informs the engine about the safety guarantees of a task’s handler, enabling appropriate retry and scheduling decisions.
Variants§
Pure
The task produces no side effects. Safe to retry unconditionally.
Idempotent
The task may produce side effects but is safe to retry (applying the same operation multiple times has the same effect as once).
Transactional
The task produces non-idempotent side effects. Retrying may cause duplicate effects. Use with caution.
Trait Implementations§
Source§impl Clone for SafetyLevel
impl Clone for SafetyLevel
Source§fn clone(&self) -> SafetyLevel
fn clone(&self) -> SafetyLevel
Returns a duplicate of the value. Read more
1.0.0 · 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 SafetyLevel
impl Debug for SafetyLevel
Source§impl Default for SafetyLevel
impl Default for SafetyLevel
Source§fn default() -> SafetyLevel
fn default() -> SafetyLevel
Returns the “default value” for a type. Read more
Source§impl Hash for SafetyLevel
impl Hash for SafetyLevel
Source§impl PartialEq for SafetyLevel
impl PartialEq for SafetyLevel
impl Copy for SafetyLevel
impl Eq for SafetyLevel
impl StructuralPartialEq for SafetyLevel
Auto Trait Implementations§
impl Freeze for SafetyLevel
impl RefUnwindSafe for SafetyLevel
impl Send for SafetyLevel
impl Sync for SafetyLevel
impl Unpin for SafetyLevel
impl UnsafeUnpin for SafetyLevel
impl UnwindSafe for SafetyLevel
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