pub enum ServeError {
Bind {
addr: SocketAddr,
source: Error,
},
Endpoint(EndpointError),
Accept(Error),
Routes(RouterError),
LegacyRoutes(RouteError),
NoIdSource,
IdSource {
reason: String,
},
}Expand description
Why an HTTP server could not be brought up.
Variants§
Bind
The address could not be listened on.
Endpoint(EndpointError)
The endpoint policy is not usable.
Accept(Error)
The accept loop failed.
Routes(RouterError)
The route table could not be built.
In practice a configured security header that is not a legal HTTP
header value, or the issue #11 fail-open combination of a wired
authenticator and the default AuthPolicy::Public policy. Failing
here rather than at the first request is the point: the alternative
is a server that starts and then answers every request with a
permission boundary that does not exist.
LegacyRoutes(RouteError)
The legacy HTTP+SSE routes could not be mounted.
A path that is not an absolute path on this origin, or a configured security header that is not a legal value.
NoIdSource
No session-id source is available in this build.
IdSource
The system entropy pool could not be read.
Trait Implementations§
Source§impl Debug for ServeError
impl Debug for ServeError
Source§impl Display for ServeError
impl Display for ServeError
Source§impl Error for ServeError
impl Error for ServeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()