pub struct CompactTask<'a> {
pub data: &'a Vec<u8>,
pub attempts: u32,
pub max_attempts: u32,
pub status: Status,
pub task_id: TaskId<Ulid>,
pub meta: Map<String, Value>,
}Expand description
A task structure that includes metadata.
Fields§
§data: &'a Vec<u8>The task data in its compact form.
attempts: u32The number of attempts made for this task.
max_attempts: u32The maximum number of attempts allowed for this task.
status: StatusThe current status of the task.
task_id: TaskId<Ulid>The unique identifier for the task.
meta: Map<String, Value>Metadata associated with the task.
Implementations§
Source§impl CompactTask<'_>
impl CompactTask<'_>
Sourcepub fn into_full_compact(
self,
) -> Result<Task<Vec<u8>, RedisContext, Ulid>, RedisError>
pub fn into_full_compact( self, ) -> Result<Task<Vec<u8>, RedisContext, Ulid>, RedisError>
Converts the task data into a full Task with compact arguments.
Sourcepub fn into_full_task<Args: 'static, C>(
self,
) -> Result<Task<Args, RedisContext, Ulid>, RedisError>
pub fn into_full_task<Args: 'static, C>( self, ) -> Result<Task<Args, RedisContext, Ulid>, RedisError>
Converts the task data into a full Task with decoded arguments.
Trait Implementations§
Source§impl<'a> Clone for CompactTask<'a>
impl<'a> Clone for CompactTask<'a>
Source§fn clone(&self) -> CompactTask<'a>
fn clone(&self) -> CompactTask<'a>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<'a> Freeze for CompactTask<'a>
impl<'a> RefUnwindSafe for CompactTask<'a>
impl<'a> Send for CompactTask<'a>
impl<'a> Sync for CompactTask<'a>
impl<'a> Unpin for CompactTask<'a>
impl<'a> UnwindSafe for CompactTask<'a>
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