Struct tower_web::routing::Unit [−][src]
pub struct Unit<B> { /* fields omitted */ }A resource with no methods.
Attempting to route to this resource will result in a 404 response.
Methods
impl<B> Unit<B>[src]
impl<B> Unit<B>Trait Implementations
impl<B: Debug> Debug for Unit<B>[src]
impl<B: Debug> Debug for Unit<B>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<B> Resource for Unit<B> where
B: BufStream, [src]
impl<B> Resource for Unit<B> where
B: BufStream, type Destination = ()
Token mapping a route to a resource method.
type RequestBody = B
The HTTP request body type.
type Buf = <Self::Body as BufStream>::Item
Buffer type yielded by the response body.
type Body = Map<String>
The HTTP response body type. Read more
type Future = FutureResult<Response<Self::Body>, Error>
Response future
fn dispatch(
&mut self,
_: (),
_: &RouteMatch,
_: Self::RequestBody
) -> Self::Future[src]
fn dispatch(
&mut self,
_: (),
_: &RouteMatch,
_: Self::RequestBody
) -> Self::FutureProcess the HTTP request and return the response asynchronously. Read more
impl<B> Clone for Unit<B>[src]
impl<B> Clone for Unit<B>