pub struct TaskSpecAdapter<S>(/* private fields */);Expand description
Zero-sized adapter from typed task specs to object-safe task specs.
Implementations§
Source§impl<S> TaskSpecAdapter<S>
impl<S> TaskSpecAdapter<S>
Trait Implementations§
Source§impl<S> Default for TaskSpecAdapter<S>
impl<S> Default for TaskSpecAdapter<S>
Source§impl<S, State, Task, Config, Context, Kind, Lane, PayloadEnvelope, ResultEnvelope, Error> ErasedBackgroundTaskSpec<State, Task, Config, Context, Kind, Lane, PayloadEnvelope, ResultEnvelope, Error> for TaskSpecAdapter<S>
impl<S, State, Task, Config, Context, Kind, Lane, PayloadEnvelope, ResultEnvelope, Error> ErasedBackgroundTaskSpec<State, Task, Config, Context, Kind, Lane, PayloadEnvelope, ResultEnvelope, Error> for TaskSpecAdapter<S>
Source§fn step_specs(&self) -> &'static [TaskStepSpec]
fn step_specs(&self) -> &'static [TaskStepSpec]
Initial step specs for this task kind.
Source§fn max_attempts(&self, runtime_config: &Config) -> i32
fn max_attempts(&self, runtime_config: &Config) -> i32
Maximum attempts for new tasks of this kind.
Source§fn decode_payload(&self, task: &Task) -> Result<PayloadEnvelope>
fn decode_payload(&self, task: &Task) -> Result<PayloadEnvelope>
Decodes the product task payload envelope.
Source§fn decode_result(&self, task: &Task) -> Result<Option<ResultEnvelope>>
fn decode_result(&self, task: &Task) -> Result<Option<ResultEnvelope>>
Decodes the product task result envelope.
Source§fn retry_class(&self, error: &Error) -> TaskRetryClass
fn retry_class(&self, error: &Error) -> TaskRetryClass
Classifies a task failure for retry behavior.
Auto Trait Implementations§
impl<S> Freeze for TaskSpecAdapter<S>
impl<S> RefUnwindSafe for TaskSpecAdapter<S>where
S: RefUnwindSafe,
impl<S> Send for TaskSpecAdapter<S>where
S: Send,
impl<S> Sync for TaskSpecAdapter<S>where
S: Sync,
impl<S> Unpin for TaskSpecAdapter<S>where
S: Unpin,
impl<S> UnsafeUnpin for TaskSpecAdapter<S>
impl<S> UnwindSafe for TaskSpecAdapter<S>where
S: 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