Enum fang::RetentionMode
source · pub enum RetentionMode {
KeepAll,
RemoveAll,
RemoveFinished,
}
Expand description
All possible options for retaining tasks in the db after their execution.
The default mode is RetentionMode::RemoveAll
Variants§
KeepAll
Keep all tasks
RemoveAll
Remove all tasks
RemoveFinished
Remove only successfully finished tasks
Trait Implementations§
source§impl Clone for RetentionMode
impl Clone for RetentionMode
source§fn clone(&self) -> RetentionMode
fn clone(&self) -> RetentionMode
Returns a copy 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 RetentionMode
impl Debug for RetentionMode
source§impl Default for RetentionMode
impl Default for RetentionMode
source§fn default() -> RetentionMode
fn default() -> RetentionMode
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for RetentionMode
impl Send for RetentionMode
impl Sync for RetentionMode
impl Unpin for RetentionMode
impl UnwindSafe for RetentionMode
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> Self::Expressionwhere Self: AsExpression<T> + Sized, T: SqlType + TypedExpressionType,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,
Convert
&self
to an expression for Diesel’s query builder. Read more