pub struct BoxAsyncEndpoint<'a, I, O> { /* private fields */ }Expand description
A boxed AsyncEndpoint trait object.
Implementations§
Source§impl<'a, I, O> BoxAsyncEndpoint<'a, I, O>
impl<'a, I, O> BoxAsyncEndpoint<'a, I, O>
Trait Implementations§
Source§impl<I, O> AsyncEndpoint<I, O> for BoxAsyncEndpoint<'_, I, O>where
I: Send,
impl<I, O> AsyncEndpoint<I, O> for BoxAsyncEndpoint<'_, I, O>where
I: Send,
Source§async fn handle(
&self,
req: Request<I>,
response_extensions: &mut Extensions,
) -> Result<Response<AsyncResponseBody<O>>, Error>
async fn handle( &self, req: Request<I>, response_extensions: &mut Extensions, ) -> Result<Response<AsyncResponseBody<O>>, Error>
Handles a request to the endpoint. Read more
Source§impl<I, O> EndpointMetadata for BoxAsyncEndpoint<'_, I, O>
impl<I, O> EndpointMetadata for BoxAsyncEndpoint<'_, I, O>
Source§fn path(&self) -> &[PathSegment]
fn path(&self) -> &[PathSegment]
The endpoint’s parsed HTTP URI path. Read more
Source§fn service_name(&self) -> &str
fn service_name(&self) -> &str
The name of the service defining this endpoint.
Source§fn deprecated(&self) -> Option<&str>
fn deprecated(&self) -> Option<&str>
If the endpoint is deprecated, returns the deprecation documentation.