pub struct TaskInProgress {
pub callback_after_seconds: i64,
pub output: HashMap<String, Value>,
}Expand description
Task in progress marker for long-running tasks.
Return this from a worker to indicate the task is still processing
and should be polled again after callback_after_seconds.
Fields§
§callback_after_seconds: i64Seconds until the task should be polled again.
output: HashMap<String, Value>Intermediate output data.
Implementations§
Source§impl TaskInProgress
impl TaskInProgress
Sourcepub fn with_output(self, output: HashMap<String, Value>) -> Self
pub fn with_output(self, output: HashMap<String, Value>) -> Self
Add intermediate output data.
Sourcepub fn with_output_value(
self,
key: impl Into<String>,
value: impl Serialize,
) -> Self
pub fn with_output_value( self, key: impl Into<String>, value: impl Serialize, ) -> Self
Add a single output value.
Trait Implementations§
Source§impl Clone for TaskInProgress
impl Clone for TaskInProgress
Source§impl Debug for TaskInProgress
impl Debug for TaskInProgress
Auto Trait Implementations§
impl Freeze for TaskInProgress
impl RefUnwindSafe for TaskInProgress
impl Send for TaskInProgress
impl Sync for TaskInProgress
impl Unpin for TaskInProgress
impl UnsafeUnpin for TaskInProgress
impl UnwindSafe for TaskInProgress
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