pub enum StartupErrorKind {
ConfigLoad(ConfigLoadError),
ConfigValidation(ConfigValidationError),
TlsFileNotFound {
path: String,
},
TlsFileNotRegular {
path: String,
},
TlsFileNotReadable {
path: String,
reason: String,
},
TlsContext(String),
Bind {
addr: SocketAddr,
source: Error,
},
Runtime(String),
}Expand description
Typed cause attached to a StartupError.
Variants§
ConfigLoad(ConfigLoadError)
Configuration file could not be loaded or parsed.
ConfigValidation(ConfigValidationError)
Merged configuration failed validation.
TlsFileNotFound
A required TLS file is missing from the filesystem.
TlsFileNotRegular
A TLS file exists but is not a regular file (e.g. directory, symlink to dir).
TlsFileNotReadable
A TLS file exists but could not be read (permissions, I/O).
TlsContext(String)
The rustls ServerConfig could not be built from the provided PEM files.
Bind
The TCP listener could not bind to the configured address.
Runtime(String)
A runtime error after the server began accepting connections.
Trait Implementations§
Source§impl Debug for StartupErrorKind
impl Debug for StartupErrorKind
Source§impl Display for StartupErrorKind
impl Display for StartupErrorKind
Source§impl Error for StartupErrorKind
impl Error for StartupErrorKind
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ConfigLoadError> for StartupErrorKind
impl From<ConfigLoadError> for StartupErrorKind
Source§fn from(source: ConfigLoadError) -> Self
fn from(source: ConfigLoadError) -> Self
Converts to this type from the input type.
Source§impl From<ConfigValidationError> for StartupErrorKind
impl From<ConfigValidationError> for StartupErrorKind
Source§fn from(source: ConfigValidationError) -> Self
fn from(source: ConfigValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StartupErrorKind
impl !RefUnwindSafe for StartupErrorKind
impl Send for StartupErrorKind
impl Sync for StartupErrorKind
impl Unpin for StartupErrorKind
impl UnsafeUnpin for StartupErrorKind
impl !UnwindSafe for StartupErrorKind
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