pub struct MockLambdaRuntimeApiServer(/* private fields */);
Implementations§
source§impl MockLambdaRuntimeApiServer
impl MockLambdaRuntimeApiServer
sourcepub async fn handle_next<ResBody, Fut>(
&self,
processor: impl Fn(Request<Incoming>) -> Fut
)
pub async fn handle_next<ResBody, Fut>( &self, processor: impl Fn(Request<Incoming>) -> Fut )
Handle the next incoming request.
sourcepub async fn serve<ResBody, Fut>(
&self,
processor: impl Fn(Request<Incoming>) -> Fut
)
pub async fn serve<ResBody, Fut>( &self, processor: impl Fn(Request<Incoming>) -> Fut )
Block the current thread and handle requests with the processor in a loop.
sourcepub async fn passthrough(&self, client: LambdaRuntimeApiClient<Incoming>)
pub async fn passthrough(&self, client: LambdaRuntimeApiClient<Incoming>)
Block the current thread and handle requests in a loop, forwarding them to the provided client, and responding with the client’s response.
Auto Trait Implementations§
impl !Freeze for MockLambdaRuntimeApiServer
impl RefUnwindSafe for MockLambdaRuntimeApiServer
impl Send for MockLambdaRuntimeApiServer
impl Sync for MockLambdaRuntimeApiServer
impl Unpin for MockLambdaRuntimeApiServer
impl UnwindSafe for MockLambdaRuntimeApiServer
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