pub struct Task<Args> {
pub args: Args,
/* private fields */
}Expand description
Represents a task which will be executed Should be considered a single unit of work
Fields§
§args: ArgsThe argument task part
Implementations§
Source§impl<Args> Task<Args>
impl<Args> Task<Args>
Sourcepub fn new(args: Args) -> Self
pub fn new(args: Args) -> Self
Creates a new task given some args
Used to easily create a ready task.
Please prefer to use TaskBuilder if you need to modify ExecutionContext
Sourcepub fn ctx(&self) -> &Arc<ExecutionContext> ⓘ
pub fn ctx(&self) -> &Arc<ExecutionContext> ⓘ
Returns the execution context associated with the task.
Source§impl<Args> Task<Args>
impl<Args> Task<Args>
Sourcepub fn take(self) -> (Args, Arc<ExecutionContext>)
pub fn take(self) -> (Args, Arc<ExecutionContext>)
Take the task into its parts
Sourcepub async fn extract<T: FromRequest<Self>>(&self) -> Result<T, T::Error>
pub async fn extract<T: FromRequest<Self>>(&self) -> Result<T, T::Error>
Extract a value of type T from the task’s context
Uses FromRequest trait to extract the value.
Sourcepub fn map_args<F, NewArgs>(self, f: F) -> Task<NewArgs>where
F: FnOnce(Args) -> NewArgs,
pub fn map_args<F, NewArgs>(self, f: F) -> Task<NewArgs>where
F: FnOnce(Args) -> NewArgs,
Maps the args field using the provided function, consuming the task.
Sourcepub fn try_map_args<F, NewArgs, Err>(self, f: F) -> Result<Task<NewArgs>, Err>
pub fn try_map_args<F, NewArgs, Err>(self, f: F) -> Result<Task<NewArgs>, Err>
Maps the args field using the provided function, consuming the task.
Sourcepub fn map_context<F>(self, f: F) -> Self
pub fn map_context<F>(self, f: F) -> Self
Maps the execution_context using the provided function, consuming the task
Sourcepub fn into_builder(self) -> TaskBuilder<Args>
pub fn into_builder(self) -> TaskBuilder<Args>
Converts the task into a TaskBuilder
Sourcepub fn inject_data<D>(&mut self, data: D) -> Option<D>
pub fn inject_data<D>(&mut self, data: D) -> Option<D>
Inject data into the execution context via Arc::make_mut
If an extension of this type already existed, it will be returned.
Sourcepub fn inject_metadata<M>(&mut self, value: &M) -> Result<(), M::Error>where
M: Metadata,
pub fn inject_metadata<M>(&mut self, value: &M) -> Result<(), M::Error>where
M: Metadata,
Inject metadata into the execution context via Arc::make_mut
Methods from Deref<Target = ExecutionContext>§
Sourcepub fn data(&self) -> &Extensions
pub fn data(&self) -> &Extensions
Returns the extensions associated with the task.
Sourcepub fn raw_attempt(&self) -> &Attempt
pub fn raw_attempt(&self) -> &Attempt
Get the atomic attempt
Sourcepub fn raw_status(&self) -> &AtomicStatus
pub fn raw_status(&self) -> &AtomicStatus
Get the atomic status
Sourcepub fn run_at(&self) -> Option<u64>
pub fn run_at(&self) -> Option<u64>
Returns the time at which the task is scheduled to run.
Returns None if no run time has been specified.
Sourcepub fn done_at(&self) -> Option<u64>
pub fn done_at(&self) -> Option<u64>
Returns the time at which the task was completed.
Returns None if the task has not been completed.
Sourcepub fn lock_at(&self) -> Option<u64>
pub fn lock_at(&self) -> Option<u64>
Returns the time at which the task was locked.
Returns None if the task is not locked.
Sourcepub fn lock_by(&self) -> Option<&str>
pub fn lock_by(&self) -> Option<&str>
Returns the identifier of the worker or process currently holding the lock on this task.
Returns None if the task is not currently locked.
Sourcepub fn idempotency_key(&self) -> Option<&str>
pub fn idempotency_key(&self) -> Option<&str>
Returns the idempotency key associated with the task.
Returns None if no idempotency key has been specified.
Sourcepub fn metadata(&self) -> &MetadataStore
pub fn metadata(&self) -> &MetadataStore
Returns the metadata associated with the task.
Sourcepub fn max_attempts(&self) -> Option<usize>
pub fn max_attempts(&self) -> Option<usize>
Returns the maximum number of attempts allowed for the task.
Returns None if no maximum has been specified.
Sourcepub fn priority(&self) -> Option<usize>
pub fn priority(&self) -> Option<usize>
Returns the priority of the task.
Returns None if no priority has been specified.
Trait Implementations§
Source§impl<Args> FromRequest<Task<Args>> for Queuewhere
Args: Sync,
impl<Args> FromRequest<Task<Args>> for Queuewhere
Args: Sync,
Source§type Error = QueueError
type Error = QueueError
Source§impl<Args: Sync> FromRequest<Task<Args>> for TaskContext
impl<Args: Sync> FromRequest<Task<Args>> for TaskContext
Source§type Error = MissingDataError
type Error = MissingDataError
Source§impl<T: Clone + Send + Sync + 'static, Args: Sync> FromRequest<Task<Args>> for Data<T>
impl<T: Clone + Send + Sync + 'static, Args: Sync> FromRequest<Task<Args>> for Data<T>
Source§type Error = MissingDataError
type Error = MissingDataError
Source§impl<Args: Send + Sync> FromRequest<Task<Args>> for MetadataStore
impl<Args: Send + Sync> FromRequest<Task<Args>> for MetadataStore
Source§impl<Args: Sync> FromRequest<Task<Args>> for TaskId
impl<Args: Sync> FromRequest<Task<Args>> for TaskId
Source§type Error = MissingDataError
type Error = MissingDataError
Source§impl<Args: Sync> FromRequest<Task<Args>> for WorkerContext
impl<Args: Sync> FromRequest<Task<Args>> for WorkerContext
Source§type Error = MissingDataError
type Error = MissingDataError
Source§impl<Args: Sync, Res> FromRequest<Task<Args>> for TaskRunner<Res>
impl<Args: Sync, Res> FromRequest<Task<Args>> for TaskRunner<Res>
Source§type Error = MissingDataError
type Error = MissingDataError
Source§impl<S, T, Args> Service<Task<Args>> for AddExtension<S, T>
impl<S, T, Args> Service<Task<Args>> for AddExtension<S, T>
Source§impl<T, F, Args, R> Service<Task<Args>> for TaskFn<T, Args, ()>
impl<T, F, Args, R> Service<Task<Args>> for TaskFn<T, Args, ()>
Source§impl<T, F, Args: Send + 'static, R, A> Service<Task<Args>> for TaskFn<T, Args, A>
impl<T, F, Args: Send + 'static, R, A> Service<Task<Args>> for TaskFn<T, Args, A>
Source§impl<T, F, Args: Send + 'static, R, A1, A2> Service<Task<Args>> for TaskFn<T, Args, (A1, A2)>where
T: FnMut(Args, A1, A2) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
impl<T, F, Args: Send + 'static, R, A1, A2> Service<Task<Args>> for TaskFn<T, Args, (A1, A2)>where
T: FnMut(Args, A1, A2) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
Source§impl<T, F, Args: Send + 'static, R, A1, A2, A3> Service<Task<Args>> for TaskFn<T, Args, (A1, A2, A3)>where
T: FnMut(Args, A1, A2, A3) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A3: FromRequest<Task<Args>> + Send,
<A3 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
impl<T, F, Args: Send + 'static, R, A1, A2, A3> Service<Task<Args>> for TaskFn<T, Args, (A1, A2, A3)>where
T: FnMut(Args, A1, A2, A3) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A3: FromRequest<Task<Args>> + Send,
<A3 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
Source§impl<T, F, Args: Send + 'static, R, A1, A2, A3, A4> Service<Task<Args>> for TaskFn<T, Args, (A1, A2, A3, A4)>where
T: FnMut(Args, A1, A2, A3, A4) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A3: FromRequest<Task<Args>> + Send,
<A3 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A4: FromRequest<Task<Args>> + Send,
<A4 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
impl<T, F, Args: Send + 'static, R, A1, A2, A3, A4> Service<Task<Args>> for TaskFn<T, Args, (A1, A2, A3, A4)>where
T: FnMut(Args, A1, A2, A3, A4) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A3: FromRequest<Task<Args>> + Send,
<A3 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A4: FromRequest<Task<Args>> + Send,
<A4 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
Source§impl<T, F, Args: Send + 'static, R, A1, A2, A3, A4, A5> Service<Task<Args>> for TaskFn<T, Args, (A1, A2, A3, A4, A5)>where
T: FnMut(Args, A1, A2, A3, A4, A5) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A3: FromRequest<Task<Args>> + Send,
<A3 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A4: FromRequest<Task<Args>> + Send,
<A4 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A5: FromRequest<Task<Args>> + Send,
<A5 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
impl<T, F, Args: Send + 'static, R, A1, A2, A3, A4, A5> Service<Task<Args>> for TaskFn<T, Args, (A1, A2, A3, A4, A5)>where
T: FnMut(Args, A1, A2, A3, A4, A5) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A3: FromRequest<Task<Args>> + Send,
<A3 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A4: FromRequest<Task<Args>> + Send,
<A4 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A5: FromRequest<Task<Args>> + Send,
<A5 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
Source§impl<T, F, Args: Send + 'static, R, A1, A2, A3, A4, A5, A6> Service<Task<Args>> for TaskFn<T, Args, (A1, A2, A3, A4, A5, A6)>where
T: FnMut(Args, A1, A2, A3, A4, A5, A6) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A3: FromRequest<Task<Args>> + Send,
<A3 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A4: FromRequest<Task<Args>> + Send,
<A4 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A5: FromRequest<Task<Args>> + Send,
<A5 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A6: FromRequest<Task<Args>> + Send,
<A6 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
impl<T, F, Args: Send + 'static, R, A1, A2, A3, A4, A5, A6> Service<Task<Args>> for TaskFn<T, Args, (A1, A2, A3, A4, A5, A6)>where
T: FnMut(Args, A1, A2, A3, A4, A5, A6) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A3: FromRequest<Task<Args>> + Send,
<A3 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A4: FromRequest<Task<Args>> + Send,
<A4 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A5: FromRequest<Task<Args>> + Send,
<A5 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A6: FromRequest<Task<Args>> + Send,
<A6 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
Source§impl<T, F, Args: Send + 'static, R, A1, A2, A3, A4, A5, A6, A7> Service<Task<Args>> for TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7)>where
T: FnMut(Args, A1, A2, A3, A4, A5, A6, A7) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A3: FromRequest<Task<Args>> + Send,
<A3 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A4: FromRequest<Task<Args>> + Send,
<A4 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A5: FromRequest<Task<Args>> + Send,
<A5 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A6: FromRequest<Task<Args>> + Send,
<A6 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A7: FromRequest<Task<Args>> + Send,
<A7 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
impl<T, F, Args: Send + 'static, R, A1, A2, A3, A4, A5, A6, A7> Service<Task<Args>> for TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7)>where
T: FnMut(Args, A1, A2, A3, A4, A5, A6, A7) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A3: FromRequest<Task<Args>> + Send,
<A3 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A4: FromRequest<Task<Args>> + Send,
<A4 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A5: FromRequest<Task<Args>> + Send,
<A5 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A6: FromRequest<Task<Args>> + Send,
<A6 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A7: FromRequest<Task<Args>> + Send,
<A7 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
Source§impl<T, F, Args: Send + 'static, R, A1, A2, A3, A4, A5, A6, A7, A8> Service<Task<Args>> for TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8)>where
T: FnMut(Args, A1, A2, A3, A4, A5, A6, A7, A8) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A3: FromRequest<Task<Args>> + Send,
<A3 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A4: FromRequest<Task<Args>> + Send,
<A4 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A5: FromRequest<Task<Args>> + Send,
<A5 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A6: FromRequest<Task<Args>> + Send,
<A6 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A7: FromRequest<Task<Args>> + Send,
<A7 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A8: FromRequest<Task<Args>> + Send,
<A8 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
impl<T, F, Args: Send + 'static, R, A1, A2, A3, A4, A5, A6, A7, A8> Service<Task<Args>> for TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8)>where
T: FnMut(Args, A1, A2, A3, A4, A5, A6, A7, A8) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A3: FromRequest<Task<Args>> + Send,
<A3 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A4: FromRequest<Task<Args>> + Send,
<A4 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A5: FromRequest<Task<Args>> + Send,
<A5 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A6: FromRequest<Task<Args>> + Send,
<A6 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A7: FromRequest<Task<Args>> + Send,
<A7 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A8: FromRequest<Task<Args>> + Send,
<A8 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
Source§impl<T, F, Args: Send + 'static, R, A1, A2, A3, A4, A5, A6, A7, A8, A9> Service<Task<Args>> for TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9)>where
T: FnMut(Args, A1, A2, A3, A4, A5, A6, A7, A8, A9) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A3: FromRequest<Task<Args>> + Send,
<A3 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A4: FromRequest<Task<Args>> + Send,
<A4 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A5: FromRequest<Task<Args>> + Send,
<A5 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A6: FromRequest<Task<Args>> + Send,
<A6 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A7: FromRequest<Task<Args>> + Send,
<A7 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A8: FromRequest<Task<Args>> + Send,
<A8 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A9: FromRequest<Task<Args>> + Send,
<A9 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
impl<T, F, Args: Send + 'static, R, A1, A2, A3, A4, A5, A6, A7, A8, A9> Service<Task<Args>> for TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9)>where
T: FnMut(Args, A1, A2, A3, A4, A5, A6, A7, A8, A9) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A3: FromRequest<Task<Args>> + Send,
<A3 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A4: FromRequest<Task<Args>> + Send,
<A4 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A5: FromRequest<Task<Args>> + Send,
<A5 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A6: FromRequest<Task<Args>> + Send,
<A6 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A7: FromRequest<Task<Args>> + Send,
<A7 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A8: FromRequest<Task<Args>> + Send,
<A8 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A9: FromRequest<Task<Args>> + Send,
<A9 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
Source§impl<T, F, Args: Send + 'static, R, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10> Service<Task<Args>> for TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)>where
T: FnMut(Args, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A3: FromRequest<Task<Args>> + Send,
<A3 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A4: FromRequest<Task<Args>> + Send,
<A4 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A5: FromRequest<Task<Args>> + Send,
<A5 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A6: FromRequest<Task<Args>> + Send,
<A6 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A7: FromRequest<Task<Args>> + Send,
<A7 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A8: FromRequest<Task<Args>> + Send,
<A8 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A9: FromRequest<Task<Args>> + Send,
<A9 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A10: FromRequest<Task<Args>> + Send,
<A10 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
impl<T, F, Args: Send + 'static, R, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10> Service<Task<Args>> for TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)>where
T: FnMut(Args, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A3: FromRequest<Task<Args>> + Send,
<A3 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A4: FromRequest<Task<Args>> + Send,
<A4 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A5: FromRequest<Task<Args>> + Send,
<A5 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A6: FromRequest<Task<Args>> + Send,
<A6 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A7: FromRequest<Task<Args>> + Send,
<A7 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A8: FromRequest<Task<Args>> + Send,
<A8 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A9: FromRequest<Task<Args>> + Send,
<A9 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A10: FromRequest<Task<Args>> + Send,
<A10 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
Source§impl<T, F, Args: Send + 'static, R, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11> Service<Task<Args>> for TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)>where
T: FnMut(Args, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A3: FromRequest<Task<Args>> + Send,
<A3 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A4: FromRequest<Task<Args>> + Send,
<A4 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A5: FromRequest<Task<Args>> + Send,
<A5 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A6: FromRequest<Task<Args>> + Send,
<A6 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A7: FromRequest<Task<Args>> + Send,
<A7 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A8: FromRequest<Task<Args>> + Send,
<A8 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A9: FromRequest<Task<Args>> + Send,
<A9 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A10: FromRequest<Task<Args>> + Send,
<A10 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A11: FromRequest<Task<Args>> + Send,
<A11 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
impl<T, F, Args: Send + 'static, R, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11> Service<Task<Args>> for TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)>where
T: FnMut(Args, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A3: FromRequest<Task<Args>> + Send,
<A3 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A4: FromRequest<Task<Args>> + Send,
<A4 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A5: FromRequest<Task<Args>> + Send,
<A5 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A6: FromRequest<Task<Args>> + Send,
<A6 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A7: FromRequest<Task<Args>> + Send,
<A7 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A8: FromRequest<Task<Args>> + Send,
<A8 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A9: FromRequest<Task<Args>> + Send,
<A9 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A10: FromRequest<Task<Args>> + Send,
<A10 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A11: FromRequest<Task<Args>> + Send,
<A11 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
Source§impl<T, F, Args: Send + 'static, R, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12> Service<Task<Args>> for TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12)>where
T: FnMut(Args, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A3: FromRequest<Task<Args>> + Send,
<A3 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A4: FromRequest<Task<Args>> + Send,
<A4 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A5: FromRequest<Task<Args>> + Send,
<A5 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A6: FromRequest<Task<Args>> + Send,
<A6 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A7: FromRequest<Task<Args>> + Send,
<A7 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A8: FromRequest<Task<Args>> + Send,
<A8 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A9: FromRequest<Task<Args>> + Send,
<A9 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A10: FromRequest<Task<Args>> + Send,
<A10 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A11: FromRequest<Task<Args>> + Send,
<A11 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A12: FromRequest<Task<Args>> + Send,
<A12 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
impl<T, F, Args: Send + 'static, R, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12> Service<Task<Args>> for TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12)>where
T: FnMut(Args, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A3: FromRequest<Task<Args>> + Send,
<A3 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A4: FromRequest<Task<Args>> + Send,
<A4 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A5: FromRequest<Task<Args>> + Send,
<A5 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A6: FromRequest<Task<Args>> + Send,
<A6 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A7: FromRequest<Task<Args>> + Send,
<A7 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A8: FromRequest<Task<Args>> + Send,
<A8 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A9: FromRequest<Task<Args>> + Send,
<A9 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A10: FromRequest<Task<Args>> + Send,
<A10 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A11: FromRequest<Task<Args>> + Send,
<A11 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A12: FromRequest<Task<Args>> + Send,
<A12 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
Source§impl<T, F, Args: Send + 'static, R, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13> Service<Task<Args>> for TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13)>where
T: FnMut(Args, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A3: FromRequest<Task<Args>> + Send,
<A3 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A4: FromRequest<Task<Args>> + Send,
<A4 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A5: FromRequest<Task<Args>> + Send,
<A5 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A6: FromRequest<Task<Args>> + Send,
<A6 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A7: FromRequest<Task<Args>> + Send,
<A7 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A8: FromRequest<Task<Args>> + Send,
<A8 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A9: FromRequest<Task<Args>> + Send,
<A9 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A10: FromRequest<Task<Args>> + Send,
<A10 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A11: FromRequest<Task<Args>> + Send,
<A11 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A12: FromRequest<Task<Args>> + Send,
<A12 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A13: FromRequest<Task<Args>> + Send,
<A13 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
impl<T, F, Args: Send + 'static, R, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13> Service<Task<Args>> for TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13)>where
T: FnMut(Args, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A3: FromRequest<Task<Args>> + Send,
<A3 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A4: FromRequest<Task<Args>> + Send,
<A4 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A5: FromRequest<Task<Args>> + Send,
<A5 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A6: FromRequest<Task<Args>> + Send,
<A6 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A7: FromRequest<Task<Args>> + Send,
<A7 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A8: FromRequest<Task<Args>> + Send,
<A8 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A9: FromRequest<Task<Args>> + Send,
<A9 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A10: FromRequest<Task<Args>> + Send,
<A10 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A11: FromRequest<Task<Args>> + Send,
<A11 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A12: FromRequest<Task<Args>> + Send,
<A12 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A13: FromRequest<Task<Args>> + Send,
<A13 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
Source§impl<T, F, Args: Send + 'static, R, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14> Service<Task<Args>> for TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14)>where
T: FnMut(Args, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A3: FromRequest<Task<Args>> + Send,
<A3 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A4: FromRequest<Task<Args>> + Send,
<A4 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A5: FromRequest<Task<Args>> + Send,
<A5 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A6: FromRequest<Task<Args>> + Send,
<A6 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A7: FromRequest<Task<Args>> + Send,
<A7 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A8: FromRequest<Task<Args>> + Send,
<A8 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A9: FromRequest<Task<Args>> + Send,
<A9 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A10: FromRequest<Task<Args>> + Send,
<A10 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A11: FromRequest<Task<Args>> + Send,
<A11 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A12: FromRequest<Task<Args>> + Send,
<A12 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A13: FromRequest<Task<Args>> + Send,
<A13 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A14: FromRequest<Task<Args>> + Send,
<A14 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
impl<T, F, Args: Send + 'static, R, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14> Service<Task<Args>> for TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14)>where
T: FnMut(Args, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A3: FromRequest<Task<Args>> + Send,
<A3 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A4: FromRequest<Task<Args>> + Send,
<A4 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A5: FromRequest<Task<Args>> + Send,
<A5 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A6: FromRequest<Task<Args>> + Send,
<A6 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A7: FromRequest<Task<Args>> + Send,
<A7 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A8: FromRequest<Task<Args>> + Send,
<A8 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A9: FromRequest<Task<Args>> + Send,
<A9 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A10: FromRequest<Task<Args>> + Send,
<A10 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A11: FromRequest<Task<Args>> + Send,
<A11 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A12: FromRequest<Task<Args>> + Send,
<A12 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A13: FromRequest<Task<Args>> + Send,
<A13 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A14: FromRequest<Task<Args>> + Send,
<A14 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
Source§impl<T, F, Args: Send + 'static, R, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15> Service<Task<Args>> for TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15)>where
T: FnMut(Args, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A3: FromRequest<Task<Args>> + Send,
<A3 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A4: FromRequest<Task<Args>> + Send,
<A4 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A5: FromRequest<Task<Args>> + Send,
<A5 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A6: FromRequest<Task<Args>> + Send,
<A6 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A7: FromRequest<Task<Args>> + Send,
<A7 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A8: FromRequest<Task<Args>> + Send,
<A8 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A9: FromRequest<Task<Args>> + Send,
<A9 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A10: FromRequest<Task<Args>> + Send,
<A10 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A11: FromRequest<Task<Args>> + Send,
<A11 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A12: FromRequest<Task<Args>> + Send,
<A12 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A13: FromRequest<Task<Args>> + Send,
<A13 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A14: FromRequest<Task<Args>> + Send,
<A14 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A15: FromRequest<Task<Args>> + Send,
<A15 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
impl<T, F, Args: Send + 'static, R, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15> Service<Task<Args>> for TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15)>where
T: FnMut(Args, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A3: FromRequest<Task<Args>> + Send,
<A3 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A4: FromRequest<Task<Args>> + Send,
<A4 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A5: FromRequest<Task<Args>> + Send,
<A5 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A6: FromRequest<Task<Args>> + Send,
<A6 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A7: FromRequest<Task<Args>> + Send,
<A7 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A8: FromRequest<Task<Args>> + Send,
<A8 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A9: FromRequest<Task<Args>> + Send,
<A9 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A10: FromRequest<Task<Args>> + Send,
<A10 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A11: FromRequest<Task<Args>> + Send,
<A11 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A12: FromRequest<Task<Args>> + Send,
<A12 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A13: FromRequest<Task<Args>> + Send,
<A13 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A14: FromRequest<Task<Args>> + Send,
<A14 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A15: FromRequest<Task<Args>> + Send,
<A15 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
Source§impl<T, F, Args: Send + 'static, R, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16> Service<Task<Args>> for TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16)>where
T: FnMut(Args, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A3: FromRequest<Task<Args>> + Send,
<A3 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A4: FromRequest<Task<Args>> + Send,
<A4 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A5: FromRequest<Task<Args>> + Send,
<A5 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A6: FromRequest<Task<Args>> + Send,
<A6 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A7: FromRequest<Task<Args>> + Send,
<A7 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A8: FromRequest<Task<Args>> + Send,
<A8 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A9: FromRequest<Task<Args>> + Send,
<A9 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A10: FromRequest<Task<Args>> + Send,
<A10 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A11: FromRequest<Task<Args>> + Send,
<A11 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A12: FromRequest<Task<Args>> + Send,
<A12 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A13: FromRequest<Task<Args>> + Send,
<A13 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A14: FromRequest<Task<Args>> + Send,
<A14 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A15: FromRequest<Task<Args>> + Send,
<A15 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A16: FromRequest<Task<Args>> + Send,
<A16 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
impl<T, F, Args: Send + 'static, R, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16> Service<Task<Args>> for TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16)>where
T: FnMut(Args, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16) -> F + Send + Clone + 'static,
F: Future + Send,
F::Output: IntoResponse<Output = R>,
A1: FromRequest<Task<Args>> + Send,
<A1 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A2: FromRequest<Task<Args>> + Send,
<A2 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A3: FromRequest<Task<Args>> + Send,
<A3 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A4: FromRequest<Task<Args>> + Send,
<A4 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A5: FromRequest<Task<Args>> + Send,
<A5 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A6: FromRequest<Task<Args>> + Send,
<A6 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A7: FromRequest<Task<Args>> + Send,
<A7 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A8: FromRequest<Task<Args>> + Send,
<A8 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A9: FromRequest<Task<Args>> + Send,
<A9 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A10: FromRequest<Task<Args>> + Send,
<A10 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A11: FromRequest<Task<Args>> + Send,
<A11 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A12: FromRequest<Task<Args>> + Send,
<A12 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A13: FromRequest<Task<Args>> + Send,
<A13 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A14: FromRequest<Task<Args>> + Send,
<A14 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A15: FromRequest<Task<Args>> + Send,
<A15 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
A16: FromRequest<Task<Args>> + Send,
<A16 as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,
Source§impl<S, A, Args, Res> Service<Task<Args>> for AcknowledgeService<S, A>
impl<S, A, Args, Res> Service<Task<Args>> for AcknowledgeService<S, A>
Source§impl<S, Args> Service<Task<Args>> for LongRunningService<S>
impl<S, Args> Service<Task<Args>> for LongRunningService<S>
Source§impl<S, Args, Fut, T, Executor, ExecErr> Service<Task<Args>> for ParallelizeService<S, Executor>where
S: Service<Task<Args>, Future = Fut>,
Executor: Fn(Fut) -> T + Send + 'static,
Fut: Future<Output = Result<S::Response, S::Error>> + Send + 'static,
T: Future<Output = Result<Result<S::Response, S::Error>, ExecErr>> + Send + 'static,
S::Error: Into<BoxDynError> + Send + 'static,
ExecErr: Into<BoxDynError>,
S::Response: Send + 'static,
impl<S, Args, Fut, T, Executor, ExecErr> Service<Task<Args>> for ParallelizeService<S, Executor>where
S: Service<Task<Args>, Future = Fut>,
Executor: Fn(Fut) -> T + Send + 'static,
Fut: Future<Output = Result<S::Response, S::Error>> + Send + 'static,
T: Future<Output = Result<Result<S::Response, S::Error>, ExecErr>> + Send + 'static,
S::Error: Into<BoxDynError> + Send + 'static,
ExecErr: Into<BoxDynError>,
S::Response: Send + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Result<<ParallelizeService<S, Executor> as Service<Task<Args>>>::Response, <ParallelizeService<S, Executor> as Service<Task<Args>>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<ParallelizeService<S, Executor> as Service<Task<Args>>>::Response, <ParallelizeService<S, Executor> as Service<Task<Args>>>::Error>> + Send>>
Source§impl<S, Args> Service<Task<Args>> for LifecycleService<S>
impl<S, Args> Service<Task<Args>> for LifecycleService<S>
Source§fn start_send(
self: Pin<&mut Self>,
item: Task<B::Compact>,
) -> Result<(), Self::Error>
fn start_send( self: Pin<&mut Self>, item: Task<B::Compact>, ) -> Result<(), Self::Error>
poll_ready which returned Poll::Ready(Ok(())). Read moreSource§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Sink to receive a value. Read moreSource§impl<P> Sink<Task<<P as Persistence>::Compact>> for Persisted<P>
Available on crate feature sleep only.
impl<P> Sink<Task<<P as Persistence>::Compact>> for Persisted<P>
sleep only.Source§type Error = <P as Persistence>::Error
type Error = <P as Persistence>::Error
Source§fn poll_ready(
self: Pin<&mut Self>,
_cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, _cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Sink to receive a value. Read moreSource§fn start_send(
self: Pin<&mut Self>,
item: Task<P::Compact>,
) -> Result<(), Self::Error>
fn start_send( self: Pin<&mut Self>, item: Task<P::Compact>, ) -> Result<(), Self::Error>
poll_ready which returned Poll::Ready(Ok(())). Read moreSource§impl<Args, DB, Fetch, S, Config> Sink<Task<Args>> for CustomBackend<Args, DB, Fetch, S, Config>
impl<Args, DB, Fetch, S, Config> Sink<Task<Args>> for CustomBackend<Args, DB, Fetch, S, Config>
Source§type Error = CustomBackendError
type Error = CustomBackendError
Source§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Sink to receive a value. Read moreSource§fn start_send(self: Pin<&mut Self>, item: Task<Args>) -> Result<(), Self::Error>
fn start_send(self: Pin<&mut Self>, item: Task<Args>) -> Result<(), Self::Error>
poll_ready which returned Poll::Ready(Ok(())). Read moreSource§impl<Args> Sink<Task<Args>> for MemoryStorage<Args>
impl<Args> Sink<Task<Args>> for MemoryStorage<Args>
Source§type Error = MemoryStorageError
type Error = MemoryStorageError
Source§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Sink to receive a value. Read moreSource§fn start_send(self: Pin<&mut Self>, item: Task<Args>) -> Result<(), Self::Error>
fn start_send(self: Pin<&mut Self>, item: Task<Args>) -> Result<(), Self::Error>
poll_ready which returned Poll::Ready(Ok(())). Read moreSource§impl<Args> Sink<Task<Args>> for MemorySink<Args>
impl<Args> Sink<Task<Args>> for MemorySink<Args>
Source§type Error = MemoryStorageError
type Error = MemoryStorageError
Source§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Sink to receive a value. Read moreSource§fn start_send(self: Pin<&mut Self>, item: Task<Args>) -> Result<(), Self::Error>
fn start_send(self: Pin<&mut Self>, item: Task<Args>) -> Result<(), Self::Error>
poll_ready which returned Poll::Ready(Ok(())). Read moreSource§impl<T> Sink<Task<T>> for VecDequeBackend<T>
impl<T> Sink<Task<T>> for VecDequeBackend<T>
Source§type Error = VecDequeError
type Error = VecDequeError
Source§fn poll_ready(
self: Pin<&mut Self>,
_cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, _cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Sink to receive a value. Read moreSource§fn start_send(self: Pin<&mut Self>, item: Task<T>) -> Result<(), Self::Error>
fn start_send(self: Pin<&mut Self>, item: Task<T>) -> Result<(), Self::Error>
poll_ready which returned Poll::Ready(Ok(())). Read more