pub enum JobState {
Queued,
Running,
Succeeded,
Dead,
}Expand description
Where a QueuedJob stands.
Variants§
Queued
Waiting for its run_at, or for its lane.
Running
Held by a worker until its locked_until.
Succeeded
Dead
Out of attempts: it runs again only when someone queues it again.
Implementations§
Source§impl JobState
impl JobState
Trait Implementations§
impl Copy for JobState
Source§impl Embed for JobState
impl Embed for JobState
impl Eq for JobState
Source§impl Field for JobState
impl Field for JobState
Source§type ExprTarget = JobState
type ExprTarget = JobState
The expression-level type of this field. Read more
Source§type Path<__Origin> = JobStateFields<__Origin>
type Path<__Origin> = JobStateFields<__Origin>
The type returned when accessing this field from a Fields struct.
For primitives, this is Path<Origin, Self>.
For embedded types, this is {Type}Fields.
Source§type ListPath<__Origin> = JobStateListFields<__Origin>
type ListPath<__Origin> = JobStateListFields<__Origin>
The type returned when accessing this field from a list Fields struct.
For primitives, this is Path<Origin, ListSelf::ExprTarget>.
For embedded types, this is {Type}ListFields.
Source§type Update<'a> = ()
type Update<'a> = ()
The type of the update builder for this field.
For embedded types, this is {Type}Update<’a>.
For primitives, this will be {Type}Update<’a> once implemented.
Source§type Inner = JobState
type Inner = JobState
The unwrapped type used for foreign key filter expressions.
Primitives map to themselves. Wrappers like
Option<T>, Box<T>,
Arc<T>, and Rc<T> map to T::Inner.Source§fn new_path<__Origin>(path: Path<__Origin, Self>) -> Self::Path<__Origin>
fn new_path<__Origin>(path: Path<__Origin, Self>) -> Self::Path<__Origin>
Build a field path from a raw path of the field’s
[
Self::ExprTarget]. Read moreSource§fn new_list_path<__Origin>(
path: Path<__Origin, List<Self::ExprTarget>>,
) -> Self::ListPath<__Origin>
fn new_list_path<__Origin>( path: Path<__Origin, List<Self::ExprTarget>>, ) -> Self::ListPath<__Origin>
Build a list field path from a raw path.
For primitives, returns the path as-is.
For embedded types, wraps the path in a ListFields struct.
Source§fn new_update<'a>(
_assignments: &'a mut Assignments,
_projection: Projection,
) -> Self::Update<'a>
fn new_update<'a>( _assignments: &'a mut Assignments, _projection: Projection, ) -> Self::Update<'a>
Build an update builder from assignments and a projection.
For primitives, this returns
() (no builder).
For embedded types, this is overridden to construct the {Type}Update builder.Source§fn field_ty(storage_ty: Option<Type>) -> FieldTy
fn field_ty(storage_ty: Option<Type>) -> FieldTy
Returns the app-level field type for this primitive.
Default implementation returns a Primitive field type.
Embedded types override this to return Embedded field type.
Source§fn key_constraint<__Origin>(
&self,
target: Path<__Origin, Self::Inner>,
) -> Expr<bool>
fn key_constraint<__Origin>( &self, target: Path<__Origin, Self::Inner>, ) -> Expr<bool>
Build a boolean filter expression comparing this field value against
a target path. Used by generated belongs-to accessors to build FK
lookups. Read more
Source§impl FormScalar for JobState
impl FormScalar for JobState
Source§fn parse_form(value: &str) -> Result<Self, Text>
fn parse_form(value: &str) -> Result<Self, Text>
Parse a trimmed, non-empty submission, or return the error message.
Source§fn to_form(&self) -> String
fn to_form(&self) -> String
The form spelling of a stored value: a
TypedValue’s
form_spelling.Source§fn to_label(&self) -> Text
fn to_label(&self) -> Text
What a column cell and a group header read: the form spelling, or an
Options enum’s label.Source§fn color(&self) -> Option<Color>
fn color(&self) -> Option<Color>
The color a badge shows the value in: an
Options enum’s #[option(color = "…")], and
None for any other type.Source§const INPUT_TYPE: &'static str = "text"
const INPUT_TYPE: &'static str = "text"
The
type attribute of the text control that edits it.Source§const STEP: Option<&'static str> = None
const STEP: Option<&'static str> = None
The control’s
step attribute, when its input type takes one.Source§const SORTABLE: bool = true
const SORTABLE: bool = true
Whether the database orders the stored column as the values order: a
TypedValue’s
SORTABLE, and true for any other type.Source§fn input_value(stored: &str, zone: &TimeZone) -> String
fn input_value(stored: &str, zone: &TimeZone) -> String
The control’s
value for a stored value’s form spelling, shown in the request’s time zone
zone: a TypedValue’s input_value, and the spelling
itself for any other type.Source§fn form_value(posted: &str, zone: &TimeZone) -> String
fn form_value(posted: &str, zone: &TimeZone) -> String
The form spelling of what the control posted, read in the request’s time zone
zone: a
TypedValue’s form_value, and the posted text itself for
any other type.impl IndexableField for JobState
Source§impl Load for JobState
impl Load for JobState
Source§fn reload(target: &mut Self, value: Value) -> Result<()>
fn reload(target: &mut Self, value: Value) -> Result<()>
Reload the value in-place from a value returned by the database. Read more
§fn ty_relation() -> Type
fn ty_relation() -> Type
Returns the [
stmt::Type] used when this type appears as a relation
target. The default delegates to ty().§fn load_relation(value: Value) -> Result<Self::Output, Error>
fn load_relation(value: Value) -> Result<Self::Output, Error>
Deserialize a value that was loaded as a relation target. Read more
Source§impl Options for JobState
impl Options for JobState
impl Scalar for JobState
impl StructuralPartialEq for JobState
Auto Trait Implementations§
impl Freeze for JobState
impl RefUnwindSafe for JobState
impl Send for JobState
impl Sync for JobState
impl Unpin for JobState
impl UnsafeUnpin for JobState
impl UnwindSafe for JobState
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> FilterKey for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoFormValue for Twhere
T: FormScalar,
impl<T> IntoFormValue for Twhere
T: FormScalar,
Source§fn into_form_value(self) -> FormValue
fn into_form_value(self) -> FormValue
The value as its control posts it.