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.
Auto Trait Implementations§
impl<'a, I, O> Freeze for BoxAsyncEndpoint<'a, I, O>
impl<'a, I, O> !RefUnwindSafe for BoxAsyncEndpoint<'a, I, O>
impl<'a, I, O> Send for BoxAsyncEndpoint<'a, I, O>
impl<'a, I, O> Sync for BoxAsyncEndpoint<'a, I, O>
impl<'a, I, O> Unpin for BoxAsyncEndpoint<'a, I, O>
impl<'a, I, O> !UnwindSafe for BoxAsyncEndpoint<'a, I, O>
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