Struct volo_http::route::MethodRouter
source · pub struct MethodRouter<S = ()> { /* private fields */ }Implementations§
source§impl<S> MethodRouter<S>
impl<S> MethodRouter<S>
pub fn new() -> Self
pub fn builder() -> MethodRouterBuilder<S>
pub fn layer<L>(self, l: L) -> Selfwhere
L: Layer<DynService> + Clone + Send + Sync + 'static,
L::Service: Service<HttpContext, Incoming, Response = Response, Error = Infallible> + Clone + Send + Sync + 'static,
pub fn with_state<S2>(self, state: S) -> MethodRouter<S2>
Auto Trait Implementations§
impl<S = ()> !RefUnwindSafe for MethodRouter<S>
impl<S> Send for MethodRouter<S>
impl<S> Sync for MethodRouter<S>
impl<S> Unpin for MethodRouter<S>
impl<S = ()> !UnwindSafe for MethodRouter<S>
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