pub struct JobMeta { /* private fields */ }
Expand description
Generic data structure for containing a subset of job metadata.
Used as a convenient way of dealing with getting/mapping Redis data that might be missing.
Implementations
sourceimpl JobMeta
impl JobMeta
sourcepub fn from_redis_value(
fields: &[Field],
v: &Value,
hidden_fields: &[Field]
) -> RedisResult<Self>
pub fn from_redis_value(
fields: &[Field],
v: &Value,
hidden_fields: &[Field]
) -> RedisResult<Self>
Construct an instance of JobMeta
from given fields and a raw redis::Value
.
pub fn id(&self) -> u64
pub fn queue(&self) -> String
pub fn status(&self) -> Status
pub fn created_at(&self) -> DateTime
pub fn started_at(&self) -> Option<DateTime>
pub fn ended_at(&self) -> Option<DateTime>
pub fn last_heartbeat(&self) -> Option<DateTime>
pub fn input(&self) -> Option<Value>
pub fn output(&self) -> Option<Value>
pub fn timeout(&self) -> Duration
pub fn heartbeat_timeout(&self) -> Duration
pub fn expires_after(&self) -> Duration
pub fn retries(&self) -> u64
pub fn retries_attempted(&self) -> u64
pub fn retry_delays(&self) -> Option<Vec<Duration>>
pub fn ended(&self) -> bool
Trait Implementations
impl StructuralPartialEq for JobMeta
Auto Trait Implementations
impl RefUnwindSafe for JobMeta
impl Send for JobMeta
impl Sync for JobMeta
impl Unpin for JobMeta
impl UnwindSafe for JobMeta
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