pub enum Status {
Queued,
Running,
Failed,
Completed,
Cancelled,
TimedOut,
}
Expand description
Status of a job that exists in Redis.
Variants
Queued
Job is in a queue, waiting for a worker to start it.
Running
Job is currently running on a worker.
Failed
Worker notified server that the job failed.
Completed
Worker notified server that the job completed successfully.
Cancelled
Queued or running job was cancelled by client request.
TimedOut
Job was marked as timed out by server, due to no completion or heartbeat by worker.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Status
impl<'de> Deserialize<'de> for Status
sourcefn 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
sourceimpl FromRedisValue for Status
impl FromRedisValue for Status
sourcefn from_redis_value(v: &Value) -> RedisResult<Self>
fn from_redis_value(v: &Value) -> RedisResult<Self>
Given a redis
Value
this attempts to convert it into the given
destination type. If that fails because it’s not compatible an
appropriate error is generated. Read moresourcefn from_redis_values(items: &[Value]) -> Result<Vec<Self, Global>, RedisError>
fn from_redis_values(items: &[Value]) -> Result<Vec<Self, Global>, RedisError>
Similar to
from_redis_value
but constructs a vector of objects
from another vector of values. This primarily exists internally
to customize the behavior for vectors of tuples. Read moresourceimpl<'a> ToRedisArgs for &'a Status
impl<'a> ToRedisArgs for &'a Status
sourcefn write_redis_args(&self, out: &mut Vec<Vec<u8>>)
fn write_redis_args(&self, out: &mut Vec<Vec<u8>>)
This writes the value into a vector of bytes. Each item
is a single argument. Most items generate a single item. Read more
sourcefn to_redis_args(&self) -> Vec<Vec<u8, Global>, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn to_redis_args(&self) -> Vec<Vec<u8, Global>, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
This converts the value into a vector of bytes. Each item
is a single argument. Most items generate a vector of a
single item. Read more
sourcefn describe_numeric_behavior(&self) -> NumericBehavior
fn describe_numeric_behavior(&self) -> NumericBehavior
Returns an information about the contained value with regards
to it’s numeric behavior in a redis context. This is used in
some high level concepts to switch between different implementations
of redis functions (for instance
INCR
vs INCRBYFLOAT
). Read moresourcefn is_single_arg(&self) -> bool
fn is_single_arg(&self) -> bool
Returns an indiciation if the value contained is exactly one
argument. It returns false if it’s zero or more than one. This
is used in some high level functions to intelligently switch
between
GET
and MGET
variants. Read moresourceimpl ToRedisArgs for Status
impl ToRedisArgs for Status
sourcefn write_redis_args(&self, out: &mut Vec<Vec<u8>>)
fn write_redis_args(&self, out: &mut Vec<Vec<u8>>)
This writes the value into a vector of bytes. Each item
is a single argument. Most items generate a single item. Read more
sourcefn to_redis_args(&self) -> Vec<Vec<u8, Global>, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn to_redis_args(&self) -> Vec<Vec<u8, Global>, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
This converts the value into a vector of bytes. Each item
is a single argument. Most items generate a vector of a
single item. Read more
sourcefn describe_numeric_behavior(&self) -> NumericBehavior
fn describe_numeric_behavior(&self) -> NumericBehavior
Returns an information about the contained value with regards
to it’s numeric behavior in a redis context. This is used in
some high level concepts to switch between different implementations
of redis functions (for instance
INCR
vs INCRBYFLOAT
). Read moresourcefn is_single_arg(&self) -> bool
fn is_single_arg(&self) -> bool
Returns an indiciation if the value contained is exactly one
argument. It returns false if it’s zero or more than one. This
is used in some high level functions to intelligently switch
between
GET
and MGET
variants. Read moreimpl Eq for Status
impl StructuralEq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.