pub struct LambdaRuntimeApiClient<ReqBody>(/* private fields */);
Expand description
An http client for the Lambda Runtime API.
A new-type wrapper around SendRequest<ReqBody>
.
§Examples
use aws_lambda_runtime_proxy::LambdaRuntimeApiClient;
let mut client = LambdaRuntimeApiClient::new().await.unwrap();
// forward the original request to the runtime API
client.forward(req).await.unwrap();
// construct a custom request and send it to the runtime API
client.as_mut().send_request(req).await.unwrap();
Implementations§
Source§impl<ReqBody: Body + Send + 'static> LambdaRuntimeApiClient<ReqBody>
impl<ReqBody: Body + Send + 'static> LambdaRuntimeApiClient<ReqBody>
Trait Implementations§
Source§impl<ReqBody> AsMut<SendRequest<ReqBody>> for LambdaRuntimeApiClient<ReqBody>
impl<ReqBody> AsMut<SendRequest<ReqBody>> for LambdaRuntimeApiClient<ReqBody>
Source§fn as_mut(&mut self) -> &mut SendRequest<ReqBody>
fn as_mut(&mut self) -> &mut SendRequest<ReqBody>
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl<ReqBody> AsRef<SendRequest<ReqBody>> for LambdaRuntimeApiClient<ReqBody>
impl<ReqBody> AsRef<SendRequest<ReqBody>> for LambdaRuntimeApiClient<ReqBody>
Source§fn as_ref(&self) -> &SendRequest<ReqBody>
fn as_ref(&self) -> &SendRequest<ReqBody>
Converts this type into a shared reference of the (usually inferred) input type.
Auto Trait Implementations§
impl<ReqBody> Freeze for LambdaRuntimeApiClient<ReqBody>
impl<ReqBody> !RefUnwindSafe for LambdaRuntimeApiClient<ReqBody>
impl<ReqBody> Send for LambdaRuntimeApiClient<ReqBody>where
ReqBody: Send,
impl<ReqBody> Sync for LambdaRuntimeApiClient<ReqBody>where
ReqBody: Send,
impl<ReqBody> Unpin for LambdaRuntimeApiClient<ReqBody>
impl<ReqBody> !UnwindSafe for LambdaRuntimeApiClient<ReqBody>
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