Struct RouterAsService

struct RouterAsService<'a, B, S = ()> { ... }

A Router converted into a borrowed Service with a fixed body type.

See Router::as_service for more details.

Implementations

impl<'a, B, S = ()> RefUnwindSafe for RouterAsService<'a, B, S>

impl<'a, B, S = ()> UnwindSafe for RouterAsService<'a, B, S>

impl<'a, B, S> Freeze for RouterAsService<'a, B, S>

impl<'a, B, S> Send for RouterAsService<'a, B, S>

impl<'a, B, S> Sync for RouterAsService<'a, B, S>

impl<'a, B, S> Unpin for RouterAsService<'a, B, S>

impl<B> Service for RouterAsService<'_, B, ()>

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

impl<B, S> Debug for RouterAsService<'_, B, S>

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

impl<S, R> ServiceExt for RouterAsService<'a, B, S>

fn into_make_service(self: Self) -> IntoMakeService<S>
fn into_make_service_with_connect_info<C>(self: Self) -> IntoMakeServiceWithConnectInfo<S, C>

impl<T> Any for RouterAsService<'a, B, S>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for RouterAsService<'a, B, S>

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

impl<T> BorrowMut for RouterAsService<'a, B, S>

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

impl<T> From for RouterAsService<'a, B, S>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for RouterAsService<'a, B, S>

impl<T> Same for RouterAsService<'a, B, S>

impl<T> WithSubscriber for RouterAsService<'a, B, S>

impl<T, Request> ServiceExt for RouterAsService<'a, B, S>

impl<T, U> Into for RouterAsService<'a, B, S>

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 RouterAsService<'a, B, S>

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

impl<T, U> TryInto for RouterAsService<'a, B, S>

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

impl<V, T> VZip for RouterAsService<'a, B, S>

fn vzip(self: Self) -> V