autumn_plugin_aws_lambda/
error.rs1#[derive(Debug, thiserror::Error)]
5#[non_exhaustive]
6pub enum PluginError {
7 #[error("the Lambda plugin does not support server.unix_socket; remove it")]
9 UnixSocketUnsupported,
10 #[error("the Lambda plugin does not support server.tls; Lambda terminates TLS")]
12 TlsUnsupported,
13 #[error("server.port is 0; set a fixed port")]
15 ZeroPort,
16 #[error(
18 "the Lambda environment is not complete; missing or not valid: {}",
19 names.join(", ")
20 )]
21 #[non_exhaustive]
22 MissingEnv {
23 names: Vec<&'static str>,
25 },
26 #[error("cannot start the Lambda runtime thread: {0}")]
28 Runtime(#[source] std::io::Error),
29 #[error(
31 "server.host {host:?} is not an IP address or localhost; set AwsLambdaPlugin::upstream"
32 )]
33 #[non_exhaustive]
34 InvalidHost {
35 host: String,
37 },
38}