pub struct LambdaInvocation {
pub parts: Parts,
pub body: Bytes,
pub context: Context,
}Expand description
A simple container that provides information about a single invocation of a Lambda function.
Fields§
§parts: PartsThe header of the request sent to invoke the Lambda function.
body: BytesThe body of the request sent to invoke the Lambda function.
context: ContextThe context of the Lambda invocation.
Trait Implementations§
Source§impl<S> Service<LambdaInvocation> for TracingService<S>
impl<S> Service<LambdaInvocation> for TracingService<S>
Source§type Future = Instrumented<<S as Service<LambdaInvocation>>::Future>
type Future = Instrumented<<S as Service<LambdaInvocation>>::Future>
The future response value.
Source§fn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <TracingService<S> as Service<LambdaInvocation>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <TracingService<S> as Service<LambdaInvocation>>::Error>>
Returns
Poll::Ready(Ok(())) when the service is able to process requests. Read moreSource§fn call(
&mut self,
req: LambdaInvocation,
) -> <TracingService<S> as Service<LambdaInvocation>>::Future
fn call( &mut self, req: LambdaInvocation, ) -> <TracingService<S> as Service<LambdaInvocation>>::Future
Process the request and return the response asynchronously. Read more
Auto Trait Implementations§
impl !Freeze for LambdaInvocation
impl !RefUnwindSafe for LambdaInvocation
impl Send for LambdaInvocation
impl Sync for LambdaInvocation
impl Unpin for LambdaInvocation
impl UnsafeUnpin for LambdaInvocation
impl !UnwindSafe for LambdaInvocation
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