Struct AsService

struct AsService<'a, M, Request> { ... }

Service returned by MakeService::as_service.

See the documentation on as_service for details.

Implementations

impl<'a, M, Request> Freeze for AsService<'a, M, Request>

impl<'a, M, Request> RefUnwindSafe for AsService<'a, M, Request>

impl<'a, M, Request> Send for AsService<'a, M, Request>

impl<'a, M, Request> Sync for AsService<'a, M, Request>

impl<'a, M, Request> Unpin for AsService<'a, M, Request>

impl<'a, M, Request> UnsafeUnpin for AsService<'a, M, Request>

impl<'a, M, Request> UnwindSafe for AsService<'a, M, Request>

impl<M, Request> Debug for AsService<'_, M, Request>

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

impl<M, S, Target, Request> MakeService for AsService<'a, M, Request>

fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), <M as MakeService<Target, Request>>::MakeError>>
fn make_service(self: &mut Self, target: Target) -> <M as MakeService<Target, Request>>::Future

impl<M, S, Target, Request> Service for AsService<'_, M, Request>

fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), <Self as >::Error>>
fn call(self: &mut Self, target: Target) -> <Self as >::Future

impl<T> Any for AsService<'a, M, Request>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for AsService<'a, M, Request>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for AsService<'a, M, Request>

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

impl<T> From for AsService<'a, M, Request>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for AsService<'a, M, Request>

impl<T> WithSubscriber for AsService<'a, M, Request>

impl<T, Request> ServiceExt for AsService<'a, M, Request>

impl<T, U> Into for AsService<'a, M, Request>

fn into(self: Self) -> U

Calls U::from(self).

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

impl<T, U> TryFrom for AsService<'a, M, Request>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for AsService<'a, M, Request>

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