Skip to main content

TaskFn

Struct TaskFn 

Source
pub struct TaskFn<F, Args, FnArgs> { /* private fields */ }
Expand description

An executable service implemented by a closure.

See task_fn for more details.

Trait Implementations§

Source§

impl<T: Clone, Args, FnArgs> Clone for TaskFn<T, Args, FnArgs>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Copy, Args, FnArgs> Copy for TaskFn<T, Args, FnArgs>

Source§

impl<T, Args, FnArgs> Debug for TaskFn<T, Args, FnArgs>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T, Args, F, R, B, O> IntoWorkerService<B, TaskFn<T, Args, ()>> for T
where T: FnMut(Args) -> F, F: Future, F::Output: IntoResponse<Output = R>, B: Backend + BackendConfig<Args = Args>, B::Kind: FinalizeBackend<B, Args, Backend = O>, O: Backend<Task = Task<Args>>, Args: Send, TaskFn<T, Args, ()>: Service<O::Task>,

Source§

type Backend = O

The backend type used by the worker service.
Source§

type Task = Task<Args>

The task type processed by the worker.
Source§

fn into_service(self, backend: B) -> WorkerService<O, TaskFn<T, Args, ()>>

Builds a worker service from the provided backend.
Source§

impl<T, Args, F, R, B, O, A1, A2> IntoWorkerService<B, TaskFn<T, Args, (A1, A2)>> for T
where B: Backend + BackendConfig<Args = Args>, B::Kind: FinalizeBackend<B, Args, Backend = O>, O: Backend<Task = Task<Args>>, T: FnMut(Args, A1, A2) -> F + Send + Clone + 'static, F: Future + Send, Args: Send + 'static, F::Output: IntoResponse<Output = R>, TaskFn<T, Args, (A1, A2)>: Service<O::Task>, 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§

type Backend = O

The backend type used by the worker service.
Source§

type Task = Task<Args>

The task type processed by the worker.
Source§

fn into_service(self, backend: B) -> WorkerService<O, TaskFn<T, Args, (A1, A2)>>

Builds a worker service from the provided backend.
Source§

impl<T, Args, F, R, B, O, A1, A2, A3> IntoWorkerService<B, TaskFn<T, Args, (A1, A2, A3)>> for T
where B: Backend + BackendConfig<Args = Args>, B::Kind: FinalizeBackend<B, Args, Backend = O>, O: Backend<Task = Task<Args>>, T: FnMut(Args, A1, A2, A3) -> F + Send + Clone + 'static, F: Future + Send, Args: Send + 'static, F::Output: IntoResponse<Output = R>, TaskFn<T, Args, (A1, A2, A3)>: Service<O::Task>, 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§

type Backend = O

The backend type used by the worker service.
Source§

type Task = Task<Args>

The task type processed by the worker.
Source§

fn into_service( self, backend: B, ) -> WorkerService<O, TaskFn<T, Args, (A1, A2, A3)>>

Builds a worker service from the provided backend.
Source§

impl<T, Args, F, R, B, O, A1, A2, A3, A4> IntoWorkerService<B, TaskFn<T, Args, (A1, A2, A3, A4)>> for T
where B: Backend + BackendConfig<Args = Args>, B::Kind: FinalizeBackend<B, Args, Backend = O>, O: Backend<Task = Task<Args>>, T: FnMut(Args, A1, A2, A3, A4) -> F + Send + Clone + 'static, F: Future + Send, Args: Send + 'static, F::Output: IntoResponse<Output = R>, TaskFn<T, Args, (A1, A2, A3, A4)>: Service<O::Task>, 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§

type Backend = O

The backend type used by the worker service.
Source§

type Task = Task<Args>

The task type processed by the worker.
Source§

fn into_service( self, backend: B, ) -> WorkerService<O, TaskFn<T, Args, (A1, A2, A3, A4)>>

Builds a worker service from the provided backend.
Source§

impl<T, Args, F, R, B, O, A1, A2, A3, A4, A5> IntoWorkerService<B, TaskFn<T, Args, (A1, A2, A3, A4, A5)>> for T
where B: Backend + BackendConfig<Args = Args>, B::Kind: FinalizeBackend<B, Args, Backend = O>, O: Backend<Task = Task<Args>>, T: FnMut(Args, A1, A2, A3, A4, A5) -> F + Send + Clone + 'static, F: Future + Send, Args: Send + 'static, F::Output: IntoResponse<Output = R>, TaskFn<T, Args, (A1, A2, A3, A4, A5)>: Service<O::Task>, 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§

type Backend = O

The backend type used by the worker service.
Source§

type Task = Task<Args>

The task type processed by the worker.
Source§

fn into_service( self, backend: B, ) -> WorkerService<O, TaskFn<T, Args, (A1, A2, A3, A4, A5)>>

Builds a worker service from the provided backend.
Source§

impl<T, Args, F, R, B, O, A1, A2, A3, A4, A5, A6> IntoWorkerService<B, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6)>> for T
where B: Backend + BackendConfig<Args = Args>, B::Kind: FinalizeBackend<B, Args, Backend = O>, O: Backend<Task = Task<Args>>, T: FnMut(Args, A1, A2, A3, A4, A5, A6) -> F + Send + Clone + 'static, F: Future + Send, Args: Send + 'static, F::Output: IntoResponse<Output = R>, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6)>: Service<O::Task>, 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§

type Backend = O

The backend type used by the worker service.
Source§

type Task = Task<Args>

The task type processed by the worker.
Source§

fn into_service( self, backend: B, ) -> WorkerService<O, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6)>>

Builds a worker service from the provided backend.
Source§

impl<T, Args, F, R, B, O, A1, A2, A3, A4, A5, A6, A7> IntoWorkerService<B, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7)>> for T
where B: Backend + BackendConfig<Args = Args>, B::Kind: FinalizeBackend<B, Args, Backend = O>, O: Backend<Task = Task<Args>>, T: FnMut(Args, A1, A2, A3, A4, A5, A6, A7) -> F + Send + Clone + 'static, F: Future + Send, Args: Send + 'static, F::Output: IntoResponse<Output = R>, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7)>: Service<O::Task>, 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§

type Backend = O

The backend type used by the worker service.
Source§

type Task = Task<Args>

The task type processed by the worker.
Source§

fn into_service( self, backend: B, ) -> WorkerService<O, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7)>>

Builds a worker service from the provided backend.
Source§

impl<T, Args, F, R, B, O, A1, A2, A3, A4, A5, A6, A7, A8> IntoWorkerService<B, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8)>> for T
where B: Backend + BackendConfig<Args = Args>, B::Kind: FinalizeBackend<B, Args, Backend = O>, O: Backend<Task = Task<Args>>, T: FnMut(Args, A1, A2, A3, A4, A5, A6, A7, A8) -> F + Send + Clone + 'static, F: Future + Send, Args: Send + 'static, F::Output: IntoResponse<Output = R>, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8)>: Service<O::Task>, 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§

type Backend = O

The backend type used by the worker service.
Source§

type Task = Task<Args>

The task type processed by the worker.
Source§

fn into_service( self, backend: B, ) -> WorkerService<O, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8)>>

Builds a worker service from the provided backend.
Source§

impl<T, Args, F, R, B, O, A1, A2, A3, A4, A5, A6, A7, A8, A9> IntoWorkerService<B, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9)>> for T
where B: Backend + BackendConfig<Args = Args>, B::Kind: FinalizeBackend<B, Args, Backend = O>, O: Backend<Task = Task<Args>>, T: FnMut(Args, A1, A2, A3, A4, A5, A6, A7, A8, A9) -> F + Send + Clone + 'static, F: Future + Send, Args: Send + 'static, F::Output: IntoResponse<Output = R>, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9)>: Service<O::Task>, 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§

type Backend = O

The backend type used by the worker service.
Source§

type Task = Task<Args>

The task type processed by the worker.
Source§

fn into_service( self, backend: B, ) -> WorkerService<O, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9)>>

Builds a worker service from the provided backend.
Source§

impl<T, Args, F, R, B, O, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10> IntoWorkerService<B, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)>> for T
where B: Backend + BackendConfig<Args = Args>, B::Kind: FinalizeBackend<B, Args, Backend = O>, O: Backend<Task = Task<Args>>, T: FnMut(Args, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10) -> F + Send + Clone + 'static, F: Future + Send, Args: Send + 'static, F::Output: IntoResponse<Output = R>, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)>: Service<O::Task>, 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§

type Backend = O

The backend type used by the worker service.
Source§

type Task = Task<Args>

The task type processed by the worker.
Source§

fn into_service( self, backend: B, ) -> WorkerService<O, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)>>

Builds a worker service from the provided backend.
Source§

impl<T, Args, F, R, B, O, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11> IntoWorkerService<B, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)>> for T
where B: Backend + BackendConfig<Args = Args>, B::Kind: FinalizeBackend<B, Args, Backend = O>, O: Backend<Task = Task<Args>>, T: FnMut(Args, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11) -> F + Send + Clone + 'static, F: Future + Send, Args: Send + 'static, F::Output: IntoResponse<Output = R>, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)>: Service<O::Task>, 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§

type Backend = O

The backend type used by the worker service.
Source§

type Task = Task<Args>

The task type processed by the worker.
Source§

fn into_service( self, backend: B, ) -> WorkerService<O, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)>>

Builds a worker service from the provided backend.
Source§

impl<T, Args, F, R, B, O, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12> IntoWorkerService<B, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12)>> for T
where B: Backend + BackendConfig<Args = Args>, B::Kind: FinalizeBackend<B, Args, Backend = O>, O: Backend<Task = Task<Args>>, T: FnMut(Args, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12) -> F + Send + Clone + 'static, F: Future + Send, Args: Send + 'static, F::Output: IntoResponse<Output = R>, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12)>: Service<O::Task>, 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§

type Backend = O

The backend type used by the worker service.
Source§

type Task = Task<Args>

The task type processed by the worker.
Source§

fn into_service( self, backend: B, ) -> WorkerService<O, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12)>>

Builds a worker service from the provided backend.
Source§

impl<T, Args, F, R, B, O, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13> IntoWorkerService<B, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13)>> for T
where B: Backend + BackendConfig<Args = Args>, B::Kind: FinalizeBackend<B, Args, Backend = O>, O: Backend<Task = Task<Args>>, T: FnMut(Args, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13) -> F + Send + Clone + 'static, F: Future + Send, Args: Send + 'static, F::Output: IntoResponse<Output = R>, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13)>: Service<O::Task>, 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§

type Backend = O

The backend type used by the worker service.
Source§

type Task = Task<Args>

The task type processed by the worker.
Source§

fn into_service( self, backend: B, ) -> WorkerService<O, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13)>>

Builds a worker service from the provided backend.
Source§

impl<T, Args, F, R, B, O, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14> IntoWorkerService<B, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14)>> for T
where B: Backend + BackendConfig<Args = Args>, B::Kind: FinalizeBackend<B, Args, Backend = O>, O: Backend<Task = Task<Args>>, T: FnMut(Args, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14) -> F + Send + Clone + 'static, F: Future + Send, Args: Send + 'static, F::Output: IntoResponse<Output = R>, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14)>: Service<O::Task>, 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§

type Backend = O

The backend type used by the worker service.
Source§

type Task = Task<Args>

The task type processed by the worker.
Source§

fn into_service( self, backend: B, ) -> WorkerService<O, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14)>>

Builds a worker service from the provided backend.
Source§

impl<T, Args, F, R, B, O, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15> IntoWorkerService<B, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15)>> for T
where B: Backend + BackendConfig<Args = Args>, B::Kind: FinalizeBackend<B, Args, Backend = O>, O: Backend<Task = Task<Args>>, 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, Args: Send + 'static, F::Output: IntoResponse<Output = R>, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15)>: Service<O::Task>, 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§

type Backend = O

The backend type used by the worker service.
Source§

type Task = Task<Args>

The task type processed by the worker.
Source§

fn into_service( self, backend: B, ) -> WorkerService<O, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15)>>

Builds a worker service from the provided backend.
Source§

impl<T, Args, F, R, B, O, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16> IntoWorkerService<B, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16)>> for T
where B: Backend + BackendConfig<Args = Args>, B::Kind: FinalizeBackend<B, Args, Backend = O>, O: Backend<Task = Task<Args>>, 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, Args: Send + 'static, F::Output: IntoResponse<Output = R>, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16)>: Service<O::Task>, 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§

type Backend = O

The backend type used by the worker service.
Source§

type Task = Task<Args>

The task type processed by the worker.
Source§

fn into_service( self, backend: B, ) -> WorkerService<O, TaskFn<T, Args, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16)>>

Builds a worker service from the provided backend.
Source§

impl<T, Args, F, R, B, O, A> IntoWorkerService<B, TaskFn<T, Args, A>> for T
where B: Backend + BackendConfig<Args = Args>, B::Kind: FinalizeBackend<B, Args, Backend = O>, O: Backend<Task = Task<Args>>, T: FnMut(Args, A) -> F + Send + Clone + 'static, F: Future + Send, Args: Send + 'static, F::Output: IntoResponse<Output = R>, TaskFn<T, Args, A>: Service<O::Task>, A: FromRequest<Task<Args>> + Send, <A as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,

Source§

type Backend = O

The backend type used by the worker service.
Source§

type Task = Task<Args>

The task type processed by the worker.
Source§

fn into_service(self, backend: B) -> WorkerService<O, TaskFn<T, Args, A>>

Builds a worker service from the provided backend.
Source§

impl<T, F, Args, R> Service<Task<Args>> for TaskFn<T, Args, ()>
where T: FnMut(Args) -> F, F: Future, F::Output: IntoResponse<Output = R>,

Source§

type Response = R

Responses given by the service.
Source§

type Error = Box<dyn Error + Sync + Send>

Errors produced by the service.
Source§

type Future = Map<F, fn(<F as Future>::Output) -> Result<R, Box<dyn Error + Sync + Send>>>

The future response value.
Source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, task: Task<Args>) -> Self::Future

Process the request and return the response asynchronously. Read more
Source§

impl<T, F, Args: Send + 'static, R, A> Service<Task<Args>> for TaskFn<T, Args, A>
where T: FnMut(Args, A) -> F + Send + Clone + 'static, F: Future + Send, F::Output: IntoResponse<Output = R>, A: FromRequest<Task<Args>> + Send, <A as FromRequest<Task<Args>>>::Error: Error + 'static + Send + Sync,

Source§

type Response = R

Responses given by the service.
Source§

type Error = Box<dyn Error + Sync + Send>

Errors produced by the service.
Source§

type Future = Pin<Box<dyn Future<Output = Result<R, Box<dyn Error + Sync + Send>>> + Send>>

The future response value.
Source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, task: Task<Args>) -> Self::Future

Process the request and return the response asynchronously. Read more
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,

Source§

type Response = R

Responses given by the service.
Source§

type Error = Box<dyn Error + Sync + Send>

Errors produced by the service.
Source§

type Future = Pin<Box<dyn Future<Output = Result<R, Box<dyn Error + Sync + Send>>> + Send>>

The future response value.
Source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, task: Task<Args>) -> Self::Future

Process the request and return the response asynchronously. Read more
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,

Source§

type Response = R

Responses given by the service.
Source§

type Error = Box<dyn Error + Sync + Send>

Errors produced by the service.
Source§

type Future = Pin<Box<dyn Future<Output = Result<R, Box<dyn Error + Sync + Send>>> + Send>>

The future response value.
Source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, task: Task<Args>) -> Self::Future

Process the request and return the response asynchronously. Read more
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,

Source§

type Response = R

Responses given by the service.
Source§

type Error = Box<dyn Error + Sync + Send>

Errors produced by the service.
Source§

type Future = Pin<Box<dyn Future<Output = Result<R, Box<dyn Error + Sync + Send>>> + Send>>

The future response value.
Source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, task: Task<Args>) -> Self::Future

Process the request and return the response asynchronously. Read more
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,

Source§

type Response = R

Responses given by the service.
Source§

type Error = Box<dyn Error + Sync + Send>

Errors produced by the service.
Source§

type Future = Pin<Box<dyn Future<Output = Result<R, Box<dyn Error + Sync + Send>>> + Send>>

The future response value.
Source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, task: Task<Args>) -> Self::Future

Process the request and return the response asynchronously. Read more
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,

Source§

type Response = R

Responses given by the service.
Source§

type Error = Box<dyn Error + Sync + Send>

Errors produced by the service.
Source§

type Future = Pin<Box<dyn Future<Output = Result<R, Box<dyn Error + Sync + Send>>> + Send>>

The future response value.
Source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, task: Task<Args>) -> Self::Future

Process the request and return the response asynchronously. Read more
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,

Source§

type Response = R

Responses given by the service.
Source§

type Error = Box<dyn Error + Sync + Send>

Errors produced by the service.
Source§

type Future = Pin<Box<dyn Future<Output = Result<R, Box<dyn Error + Sync + Send>>> + Send>>

The future response value.
Source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, task: Task<Args>) -> Self::Future

Process the request and return the response asynchronously. Read more
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,

Source§

type Response = R

Responses given by the service.
Source§

type Error = Box<dyn Error + Sync + Send>

Errors produced by the service.
Source§

type Future = Pin<Box<dyn Future<Output = Result<R, Box<dyn Error + Sync + Send>>> + Send>>

The future response value.
Source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, task: Task<Args>) -> Self::Future

Process the request and return the response asynchronously. Read more
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,

Source§

type Response = R

Responses given by the service.
Source§

type Error = Box<dyn Error + Sync + Send>

Errors produced by the service.
Source§

type Future = Pin<Box<dyn Future<Output = Result<R, Box<dyn Error + Sync + Send>>> + Send>>

The future response value.
Source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, task: Task<Args>) -> Self::Future

Process the request and return the response asynchronously. Read more
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,

Source§

type Response = R

Responses given by the service.
Source§

type Error = Box<dyn Error + Sync + Send>

Errors produced by the service.
Source§

type Future = Pin<Box<dyn Future<Output = Result<R, Box<dyn Error + Sync + Send>>> + Send>>

The future response value.
Source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, task: Task<Args>) -> Self::Future

Process the request and return the response asynchronously. Read more
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,

Source§

type Response = R

Responses given by the service.
Source§

type Error = Box<dyn Error + Sync + Send>

Errors produced by the service.
Source§

type Future = Pin<Box<dyn Future<Output = Result<R, Box<dyn Error + Sync + Send>>> + Send>>

The future response value.
Source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, task: Task<Args>) -> Self::Future

Process the request and return the response asynchronously. Read more
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,

Source§

type Response = R

Responses given by the service.
Source§

type Error = Box<dyn Error + Sync + Send>

Errors produced by the service.
Source§

type Future = Pin<Box<dyn Future<Output = Result<R, Box<dyn Error + Sync + Send>>> + Send>>

The future response value.
Source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, task: Task<Args>) -> Self::Future

Process the request and return the response asynchronously. Read more
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,

Source§

type Response = R

Responses given by the service.
Source§

type Error = Box<dyn Error + Sync + Send>

Errors produced by the service.
Source§

type Future = Pin<Box<dyn Future<Output = Result<R, Box<dyn Error + Sync + Send>>> + Send>>

The future response value.
Source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, task: Task<Args>) -> Self::Future

Process the request and return the response asynchronously. Read more
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,

Source§

type Response = R

Responses given by the service.
Source§

type Error = Box<dyn Error + Sync + Send>

Errors produced by the service.
Source§

type Future = Pin<Box<dyn Future<Output = Result<R, Box<dyn Error + Sync + Send>>> + Send>>

The future response value.
Source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, task: Task<Args>) -> Self::Future

Process the request and return the response asynchronously. Read more
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,

Source§

type Response = R

Responses given by the service.
Source§

type Error = Box<dyn Error + Sync + Send>

Errors produced by the service.
Source§

type Future = Pin<Box<dyn Future<Output = Result<R, Box<dyn Error + Sync + Send>>> + Send>>

The future response value.
Source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, task: Task<Args>) -> Self::Future

Process the request and return the response asynchronously. Read more
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,

Source§

type Response = R

Responses given by the service.
Source§

type Error = Box<dyn Error + Sync + Send>

Errors produced by the service.
Source§

type Future = Pin<Box<dyn Future<Output = Result<R, Box<dyn Error + Sync + Send>>> + Send>>

The future response value.
Source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, task: Task<Args>) -> Self::Future

Process the request and return the response asynchronously. Read more

Auto Trait Implementations§

§

impl<F, Args, FnArgs> Freeze for TaskFn<F, Args, FnArgs>
where F: Freeze, PhantomData<Args>: Freeze, PhantomData<FnArgs>: Freeze,

§

impl<F, Args, FnArgs> RefUnwindSafe for TaskFn<F, Args, FnArgs>

§

impl<F, Args, FnArgs> Send for TaskFn<F, Args, FnArgs>
where F: Send, PhantomData<Args>: Send, PhantomData<FnArgs>: Send,

§

impl<F, Args, FnArgs> Sync for TaskFn<F, Args, FnArgs>
where F: Sync, PhantomData<Args>: Sync, PhantomData<FnArgs>: Sync,

§

impl<F, Args, FnArgs> Unpin for TaskFn<F, Args, FnArgs>
where F: Unpin, PhantomData<Args>: Unpin, PhantomData<FnArgs>: Unpin,

§

impl<F, Args, FnArgs> UnsafeUnpin for TaskFn<F, Args, FnArgs>

§

impl<F, Args, FnArgs> UnwindSafe for TaskFn<F, Args, FnArgs>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<Args, S, B, O> IntoWorkerService<B, S> for S
where B: Backend + BackendConfig<Args = Args>, <B as BackendConfig>::Kind: FinalizeBackend<B, Args, Backend = O>, O: Backend<Task = Task<Args>>, S: Service<<O as Backend>::Task>,

Source§

type Backend = O

The backend type used by the worker service.
Source§

type Task = Task<Args>

The task type processed by the worker.
Source§

fn into_service(self, backend: B) -> WorkerService<O, S>

Builds a worker service from the provided backend.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more