pub struct AwsLambdaPlugin { /* private fields */ }Expand description
Runs an Autumn app on AWS Lambda.
Register it with .plugin(AwsLambdaPlugin::new()).
Implementations§
Source§impl AwsLambdaPlugin
impl AwsLambdaPlugin
Sourcepub const DEFAULT_TIMEOUT_MARGIN: Duration
pub const DEFAULT_TIMEOUT_MARGIN: Duration
Default time between the end of the upstream call and the invocation deadline.
Sourcepub const fn activation(self, activation: Activation) -> Self
pub const fn activation(self, activation: Activation) -> Self
Sets when the runtime loop starts. Default: Activation::Auto.
Sourcepub const fn response_mode(self, mode: ResponseMode) -> Self
pub const fn response_mode(self, mode: ResponseMode) -> Self
Sets how the plugin sends responses to Lambda.
Default: ResponseMode::Buffered.
Sourcepub const fn upstream(self, addr: SocketAddr) -> Self
pub const fn upstream(self, addr: SocketAddr) -> Self
Sets the upstream address. Default: from Autumn [server] config.
With this setting, the plugin does not check [server]. The address
must reach the Autumn listener.
Sourcepub const fn readiness_timeout(self, timeout: Duration) -> Self
pub const fn readiness_timeout(self, timeout: Duration) -> Self
Sets the maximum time to wait for Autumn startup before the first event. When the time ends, the loop starts. Default: no limit.
Sourcepub const fn timeout_margin(self, margin: Duration) -> Self
pub const fn timeout_margin(self, margin: Duration) -> Self
Sets the time between the end of the upstream call and the
invocation deadline. Default: Self::DEFAULT_TIMEOUT_MARGIN.
Trait Implementations§
Source§impl Clone for AwsLambdaPlugin
impl Clone for AwsLambdaPlugin
Source§impl Debug for AwsLambdaPlugin
impl Debug for AwsLambdaPlugin
Source§impl Default for AwsLambdaPlugin
impl Default for AwsLambdaPlugin
Source§impl Plugin for AwsLambdaPlugin
impl Plugin for AwsLambdaPlugin
Source§fn build(self, app: AppBuilder) -> AppBuilder
fn build(self, app: AppBuilder) -> AppBuilder
Apply this plugin’s configuration to the builder. Read more
Source§fn name(&self) -> Cow<'static, str>
fn name(&self) -> Cow<'static, str>
Stable identifier used for duplicate-registration detection. Read more
Auto Trait Implementations§
impl Forget for AwsLambdaPlugin
impl Freeze for AwsLambdaPlugin
impl RefUnwindSafe for AwsLambdaPlugin
impl Send for AwsLambdaPlugin
impl Sync for AwsLambdaPlugin
impl Unpin for AwsLambdaPlugin
impl UnsafeUnpin for AwsLambdaPlugin
impl UnwindSafe for AwsLambdaPlugin
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<P> Plugins for Pwhere
P: Plugin,
impl<P> Plugins for Pwhere
P: Plugin,
Source§fn apply(self, app: AppBuilder) -> AppBuilder
fn apply(self, app: AppBuilder) -> AppBuilder
Apply every plugin in this bundle to the builder, in declaration order.
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Scoped for T
impl<T> Scoped for T
Source§fn scope(ctx: &PolicyContext) -> ScopeQuery<'_, Self>
fn scope(ctx: &PolicyContext) -> ScopeQuery<'_, Self>
Open a deferred
ScopeQuery for this type. Resolves the
registered scope at .load() time, not here.