pub struct ApiGatewayV2HttpService<H: ApiGatewayV2Handler> { /* private fields */ }Expand description
Hyper Service implementation for API Gateway v2.
Wraps an ApiGatewayV2Handler implementation and routes incoming HTTP
requests to the appropriate operation handler using restJson1 URL-based
routing.
Implementations§
Source§impl<H: ApiGatewayV2Handler> ApiGatewayV2HttpService<H>
impl<H: ApiGatewayV2Handler> ApiGatewayV2HttpService<H>
Sourcepub fn new(handler: Arc<H>, config: ApiGatewayV2HttpConfig) -> Self
pub fn new(handler: Arc<H>, config: ApiGatewayV2HttpConfig) -> Self
Create a new ApiGatewayV2HttpService.
Trait Implementations§
Source§impl<H: ApiGatewayV2Handler> Clone for ApiGatewayV2HttpService<H>
impl<H: ApiGatewayV2Handler> Clone for ApiGatewayV2HttpService<H>
Source§impl<H: Debug + ApiGatewayV2Handler> Debug for ApiGatewayV2HttpService<H>
impl<H: Debug + ApiGatewayV2Handler> Debug for ApiGatewayV2HttpService<H>
Source§impl<H: ApiGatewayV2Handler> Service<Request<Incoming>> for ApiGatewayV2HttpService<H>
impl<H: ApiGatewayV2Handler> Service<Request<Incoming>> for ApiGatewayV2HttpService<H>
Source§type Response = Response<ApiGatewayV2ResponseBody>
type Response = Response<ApiGatewayV2ResponseBody>
Responses given by the service.
Source§type Error = Infallible
type Error = Infallible
Errors produced by the service. Read more
Auto Trait Implementations§
impl<H> Freeze for ApiGatewayV2HttpService<H>
impl<H> !RefUnwindSafe for ApiGatewayV2HttpService<H>
impl<H> Send for ApiGatewayV2HttpService<H>
impl<H> Sync for ApiGatewayV2HttpService<H>
impl<H> Unpin for ApiGatewayV2HttpService<H>
impl<H> UnsafeUnpin for ApiGatewayV2HttpService<H>
impl<H> !UnwindSafe for ApiGatewayV2HttpService<H>
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