Struct RouterIntoService

struct RouterIntoService<B, S = ()> { ... }

A Router converted into an owned Service with a fixed body type.

See Router::into_service for more details.

Implementations

impl<B> Service for RouterIntoService<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 = ()> RefUnwindSafe for RouterIntoService<B, S>

impl<B, S = ()> UnwindSafe for RouterIntoService<B, S>

impl<B, S> Clone for RouterIntoService<B, S>

fn clone(self: &Self) -> Self

impl<B, S> Debug for RouterIntoService<B, S>

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

impl<B, S> Freeze for RouterIntoService<B, S>

impl<B, S> Send for RouterIntoService<B, S>

impl<B, S> Sync for RouterIntoService<B, S>

impl<B, S> Unpin for RouterIntoService<B, S>

impl<S, R> ServiceExt for RouterIntoService<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 RouterIntoService<B, S>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for RouterIntoService<B, S>

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

impl<T> BorrowMut for RouterIntoService<B, S>

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

impl<T> CloneToUninit for RouterIntoService<B, S>

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

impl<T> From for RouterIntoService<B, S>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FromRef for RouterIntoService<B, S>

fn from_ref(input: &T) -> T

impl<T> Instrument for RouterIntoService<B, S>

impl<T> Same for RouterIntoService<B, S>

impl<T> ToOwned for RouterIntoService<B, S>

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T> WithSubscriber for RouterIntoService<B, S>

impl<T, Request> ServiceExt for RouterIntoService<B, S>

impl<T, U> Into for RouterIntoService<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 RouterIntoService<B, S>

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

impl<T, U> TryInto for RouterIntoService<B, S>

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

impl<V, T> VZip for RouterIntoService<B, S>

fn vzip(self: Self) -> V