pub struct LambdaApp<T: Send + Sync + Clone, R: LambdaResponseProcessor<T> + Send + Sync + Clone> {
pub processor: R,
pub static_asset_routes: Vec<StaticAssetRoute>,
/* private fields */
}Expand description
Lambda application with configurable response processing.
The main entry point for creating a Lambda-based HyperChad application.
Combines a custom LambdaResponseProcessor with optional static asset
routing to handle HTTP requests in AWS Lambda environment.
Fields§
§processor: RThe response processor for handling requests.
static_asset_routes: Vec<StaticAssetRoute>Static asset routes (requires assets feature).
Defines routes that serve embedded static files like CSS, JavaScript,
or images. Only available when the assets feature is enabled.
Implementations§
Trait Implementations§
Source§impl<T: Clone + Send + Sync + Clone, R: Clone + LambdaResponseProcessor<T> + Send + Sync + Clone> Clone for LambdaApp<T, R>
impl<T: Clone + Send + Sync + Clone, R: Clone + LambdaResponseProcessor<T> + Send + Sync + Clone> Clone for LambdaApp<T, R>
Source§impl<T: Send + Sync + Clone + 'static, R: LambdaResponseProcessor<T> + Send + Sync + Clone + 'static> ToRenderRunner for LambdaApp<T, R>
impl<T: Send + Sync + Clone + 'static, R: LambdaResponseProcessor<T> + Send + Sync + Clone + 'static> ToRenderRunner for LambdaApp<T, R>
Source§fn to_runner(
self,
handle: Handle,
) -> Result<Box<dyn RenderRunner>, Box<dyn Error + Send>>
fn to_runner( self, handle: Handle, ) -> Result<Box<dyn RenderRunner>, Box<dyn Error + Send>>
Converts the Lambda application into a runtime-ready runner.
Creates a LambdaAppRunner that wraps this application with the
provided async runtime handle, preparing it for execution in the
Lambda event loop.
§Errors
This implementation always returns Ok and does not produce errors.