pub struct Route<R, N, const M: usize> { /* private fields */ }Expand description
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>
Sourcepub fn get<R1>(self, get: R1) -> Route<R, Route<R1, N, 1>, M>
pub fn get<R1>(self, get: R1) -> Route<R, Route<R1, N, 1>, M>
appending Method::GET guarded route to current Route. Act as a shortcut of Route::next.
Sourcepub fn post<R1>(self, post: R1) -> Route<R, Route<R1, N, 1>, M>
pub fn post<R1>(self, post: R1) -> Route<R, Route<R1, N, 1>, M>
appending Method::POST guarded route to current Route. Act as a shortcut of Route::next.
Sourcepub fn put<R1>(self, put: R1) -> Route<R, Route<R1, N, 1>, M>
pub fn put<R1>(self, put: R1) -> Route<R, Route<R1, N, 1>, M>
appending Method::PUT guarded route to current Route. Act as a shortcut of Route::next.
Sourcepub fn delete<R1>(self, delete: R1) -> Route<R, Route<R1, N, 1>, M>
pub fn delete<R1>(self, delete: R1) -> Route<R, Route<R1, N, 1>, M>
appending Method::DELETE guarded route to current Route. Act as a shortcut of Route::next.
Sourcepub fn head<R1>(self, head: R1) -> Route<R, Route<R1, N, 1>, M>
pub fn head<R1>(self, head: R1) -> Route<R, Route<R1, N, 1>, M>
appending Method::HEAD guarded route to current Route. Act as a shortcut of Route::next.
Sourcepub fn options<R1>(self, options: R1) -> Route<R, Route<R1, N, 1>, M>
pub fn options<R1>(self, options: R1) -> Route<R, Route<R1, N, 1>, M>
appending Method::OPTIONS guarded route to current Route. Act as a shortcut of Route::next.
Sourcepub fn connect<R1>(self, connect: R1) -> Route<R, Route<R1, N, 1>, M>
pub fn connect<R1>(self, connect: R1) -> Route<R, Route<R1, N, 1>, M>
appending Method::CONNECT guarded route to current Route. Act as a shortcut of Route::next.
Sourcepub fn patch<R1>(self, patch: R1) -> Route<R, Route<R1, N, 1>, M>
pub fn patch<R1>(self, patch: R1) -> Route<R, Route<R1, N, 1>, M>
appending Method::PATCH guarded route to current Route. Act as a shortcut of Route::next.
Sourcepub fn trace<R1>(self, trace: R1) -> Route<R, Route<R1, N, 1>, M>
pub fn trace<R1>(self, trace: R1) -> Route<R, Route<R1, N, 1>, M>
appending Method::TRACE guarded route to current Route. Act as a shortcut of Route::next.
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> Freeze for Route<R, N, M>
impl<R, N, const M: usize> RefUnwindSafe for Route<R, N, M>where
R: RefUnwindSafe,
N: 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> UnsafeUnpin for Route<R, N, M>where
R: UnsafeUnpin,
N: UnsafeUnpin,
impl<R, N, const M: usize> UnwindSafe for Route<R, N, M>where
R: UnwindSafe,
N: 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
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, O>(
self,
func: T,
) -> Pipeline<Self, AsyncFn<T>, BuildEnclosed>
fn enclosed_fn<T, Req, O>( self, func: T, ) -> Pipeline<Self, AsyncFn<T>, BuildEnclosed>
Source§fn map<F, Res, ResMap>(self, mapper: F) -> Pipeline<Self, Map<F>, BuildEnclosed>
fn map<F, Res, ResMap>(self, mapper: F) -> Pipeline<Self, Map<F>, BuildEnclosed>
<<Self::Response as Service<Req>>::Future as Future>::Output type with given
closure.