pub struct Route<R, N, const M: usize> { /* private fields */ }Implementations§
source§impl<const M: usize> Route<(), MethodNotAllowedBuilder<()>, M>
impl<const M: usize> Route<(), MethodNotAllowedBuilder<()>, M>
source§impl<R, N, const M: usize> Route<R, N, M>
impl<R, N, const M: usize> Route<R, N, M>
sourcepub fn next<R1, const M1: usize>(
self,
next: Route<R1, MethodNotAllowedBuilder<R1>, M1>
) -> Route<R, Route<R1, N, M1>, M>
pub fn next<R1, const M1: usize>( self, next: Route<R1, MethodNotAllowedBuilder<R1>, M1> ) -> Route<R, Route<R1, N, M1>, M>
pub fn get<R1>(self, get: R1) -> Route<R, Route<R1, N, 1>, M>
pub fn post<R1>(self, post: R1) -> Route<R, Route<R1, N, 1>, M>
pub fn put<R1>(self, put: R1) -> Route<R, Route<R1, N, 1>, M>
pub fn delete<R1>(self, delete: R1) -> Route<R, Route<R1, N, 1>, M>
pub fn head<R1>(self, head: R1) -> Route<R, Route<R1, N, 1>, M>
pub fn options<R1>(self, options: R1) -> Route<R, Route<R1, N, 1>, M>
pub fn connect<R1>(self, connect: R1) -> Route<R, Route<R1, N, 1>, M>
pub fn patch<R1>(self, patch: R1) -> Route<R, Route<R1, N, 1>, M>
pub fn trace<R1>(self, trace: R1) -> Route<R, Route<R1, N, 1>, M>
Trait Implementations§
source§impl<Arg, R, N, const M: usize> Service<Arg> for Route<R, N, M>
impl<Arg, R, N, const M: usize> Service<Arg> for Route<R, N, M>
Auto Trait Implementations§
impl<R, N, const M: usize> RefUnwindSafe for Route<R, N, M>where
N: RefUnwindSafe,
R: RefUnwindSafe,
impl<R, N, const M: usize> Send for Route<R, N, M>
impl<R, N, const M: usize> Sync for Route<R, N, M>
impl<R, N, const M: usize> Unpin for Route<R, N, M>
impl<R, N, const M: usize> UnwindSafe for Route<R, N, M>where
N: UnwindSafe,
R: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<S, Arg> ServiceExt<Arg> for Swhere
S: Service<Arg>,
impl<S, Arg> ServiceExt<Arg> for Swhere
S: Service<Arg>,
source§fn enclosed<T>(self, build: T) -> Pipeline<Self, T, BuildEnclosed>
fn enclosed<T>(self, build: T) -> Pipeline<Self, T, BuildEnclosed>
Enclose Self with given
T as Service<<Self as Service<_>>::Response>>. In other word T
would take Self’s Service::Response type as it’s generic argument of Service<_> impl.source§fn enclosed_fn<T, Req>(self, func: T) -> Pipeline<Self, T, BuildEnclosedFn>
fn enclosed_fn<T, Req>(self, func: T) -> Pipeline<Self, T, BuildEnclosedFn>
Function version of Self::enclosed method.
source§fn map<F, Res, ResMap>(self, mapper: F) -> Pipeline<Self, F, BuildMap>
fn map<F, Res, ResMap>(self, mapper: F) -> Pipeline<Self, F, BuildMap>
Mutate
<<Self::Response as Service<Req>>::Future as Future>::Output type with given
closure.