MCPcopy Index your code
hub / github.com/aws/aws-lambda-rust-runtime / run

Function run

lambda-extension/src/lib.rs:33–41  ·  view source on GitHub ↗

Execute the given events processor

(events_processor: E)

Source from the content-addressed store, hash-verified

31
32/// Execute the given events processor
33pub async fn run<E>(events_processor: E) -> Result<(), Error>
34where
35 E: Service<LambdaEvent>,
36 E::Future: Future<Output = Result<(), E::Error>>,
37 E::Error: Into<Box<dyn std::error::Error + Send + Sync>> + fmt::Display + fmt::Debug,
38{
39 let ext = Extension::new().with_events_processor(events_processor);
40 ext.run().await
41}

Callers

nothing calls this directly

Calls 2

with_events_processorMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected