Create a new [`Extension`] with a list of given events. The only accepted events are `INVOKE` and `SHUTDOWN`.
(self, events: &'a [&'a str])
| 107 | /// Create a new [`Extension`] with a list of given events. |
| 108 | /// The only accepted events are `INVOKE` and `SHUTDOWN`. |
| 109 | pub fn with_events(self, events: &'a [&'a str]) -> Self { |
| 110 | Extension { |
| 111 | events: Some(events), |
| 112 | ..self |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | /// Create a new [`Extension`] with a service that receives Lambda events. |
| 117 | pub fn with_events_processor<N>(self, ep: N) -> Extension<'a, N, L, T, TL> |
no outgoing calls
no test coverage detected