pub struct JobRecord<J> {
pub id: JobId,
pub payload: J,
pub attempts: u32,
pub state: JobState,
pub run_at_ms: u64,
pub created_at_ms: u64,
pub last_error: Option<String>,
pub key: Option<String>,
}Expand description
A job as stored by the queue
Fields§
§id: JobId§payload: J§attempts: u32Failed attempts so far
state: JobState§run_at_ms: u64§created_at_ms: u64§last_error: Option<String>§key: Option<String>Trait Implementations§
Source§impl<'de, J> Deserialize<'de> for JobRecord<J>where
J: Deserialize<'de>,
impl<'de, J> Deserialize<'de> for JobRecord<J>where
J: Deserialize<'de>,
Source§fn 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
Auto Trait Implementations§
impl<J> Freeze for JobRecord<J>where
J: Freeze,
impl<J> RefUnwindSafe for JobRecord<J>where
J: RefUnwindSafe,
impl<J> Send for JobRecord<J>where
J: Send,
impl<J> Sync for JobRecord<J>where
J: Sync,
impl<J> Unpin for JobRecord<J>where
J: Unpin,
impl<J> UnsafeUnpin for JobRecord<J>where
J: UnsafeUnpin,
impl<J> UnwindSafe for JobRecord<J>where
J: UnwindSafe,
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