pub struct LambdaState {
pub functions: DashMap<String, LambdaFunction>,
pub event_source_mappings: DashMap<String, EventSourceMapping>,
pub layers: DashMap<String, Vec<LayerVersion>>,
pub url_configs: DashMap<String, FunctionUrlConfig>,
pub event_invoke_configs: DashMap<String, EventInvokeConfig>,
pub body_store: OnceLock<Arc<BodyStore>>,
pub active_invocations: DashMap<String, Arc<AtomicU32>>,
}Expand description
Lambda state — per account and region.
Fields§
§functions: DashMap<String, LambdaFunction>§event_source_mappings: DashMap<String, EventSourceMapping>§layers: DashMap<String, Vec<LayerVersion>>§url_configs: DashMap<String, FunctionUrlConfig>function_name → FunctionUrlConfig
event_invoke_configs: DashMap<String, EventInvokeConfig>function_name[:qualifier] → EventInvokeConfig
body_store: OnceLock<Arc<BodyStore>>§active_invocations: DashMap<String, Arc<AtomicU32>>Per-function active-invocation counter. Used to enforce
ReservedConcurrentExecutions (and AWS’s
TooManyRequestsException on overflow). Lazily populated on
first invoke against the function; entries are never removed
even when the function is deleted, but the counter resets when
the LambdaState is dropped or rebuilt from a snapshot.
Implementations§
Source§impl LambdaState
impl LambdaState
pub fn body_store(&self) -> Option<&Arc<BodyStore>>
pub fn set_body_store(&self, store: Arc<BodyStore>)
Trait Implementations§
Source§impl Debug for LambdaState
impl Debug for LambdaState
Source§impl Default for LambdaState
impl Default for LambdaState
Source§fn default() -> LambdaState
fn default() -> LambdaState
Returns the “default value” for a type. Read more
Source§impl Snapshottable for LambdaState
impl Snapshottable for LambdaState
Auto Trait Implementations§
impl !Freeze for LambdaState
impl !RefUnwindSafe for LambdaState
impl Send for LambdaState
impl Sync for LambdaState
impl Unpin for LambdaState
impl UnsafeUnpin for LambdaState
impl UnwindSafe for LambdaState
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