Struct ocypod::models::job::TimeoutMeta
source · pub struct TimeoutMeta(_);
Expand description
Subset of job data used for determining whether a job should be timed out.
Implementations
sourceimpl TimeoutMeta
impl TimeoutMeta
pub fn from_conn<K: ToRedisArgs>(conn: &Connection, key: K) -> RedisResult<Self>
pub fn id(&self) -> u64
pub fn has_timed_out(&self) -> bool
pub fn fields() -> &'static [Field]
Trait Implementations
sourceimpl FromRedisValue for TimeoutMeta
impl FromRedisValue for TimeoutMeta
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 moreAuto Trait Implementations
impl RefUnwindSafe for TimeoutMeta
impl Send for TimeoutMeta
impl Sync for TimeoutMeta
impl Unpin for TimeoutMeta
impl UnwindSafe for TimeoutMeta
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