Struct Route

struct Route<E = std::convert::Infallible>(_)

How routes are stored inside a Router.

You normally shouldn't need to care about this type. It's used in Router::layer.

Implementations

impl<B, E> Service for Route<E>

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<E = Infallible> RefUnwindSafe for Route<E>

impl<E = Infallible> UnwindSafe for Route<E>

impl<E> Clone for Route<E>

fn clone(self: &Self) -> Self

impl<E> Debug for Route<E>

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

impl<E> Freeze for Route<E>

impl<E> Send for Route<E>

impl<E> Sync for Route<E>

impl<E> Unpin for Route<E>

impl<E> UnsafeUnpin for Route<E>

impl<S, R> ServiceExt for Route<E>

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 Route<E>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Route<E>

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

impl<T> BorrowMut for Route<E>

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

impl<T> CloneToUninit for Route<E>

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

impl<T> From for Route<E>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FromRef for Route<E>

fn from_ref(input: &T) -> T

impl<T> Instrument for Route<E>

impl<T> Same for Route<E>

impl<T> ToOwned for Route<E>

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

impl<T> WithSubscriber for Route<E>

impl<T, Request> ServiceExt for Route<E>

impl<T, U> Into for Route<E>

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 Route<E>

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

impl<T, U> TryInto for Route<E>

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

impl<V, T> VZip for Route<E>

fn vzip(self: Self) -> V