pub enum ServerConfigError {
ChunksDirNotFound(PathBuf),
TlsCertNotFound(PathBuf),
TlsKeyNotFound(PathBuf),
BadServerAddress,
Read(PathBuf, Error),
YamlParse(Error),
}Expand description
Possible errors wittht server configuration.
Variants§
ChunksDirNotFound(PathBuf)
The chunks directory doesn’t exist.
TlsCertNotFound(PathBuf)
The TLS certificate doesn’t exist.
TlsKeyNotFound(PathBuf)
The TLS key doesn’t exist.
BadServerAddress
Server address is wrong.
Read(PathBuf, Error)
Failed to read configuration file.
YamlParse(Error)
Failed to parse configuration file as YAML.
Trait Implementations§
Source§impl Debug for ServerConfigError
impl Debug for ServerConfigError
Source§impl Display for ServerConfigError
impl Display for ServerConfigError
Source§impl Error for ServerConfigError
impl Error for ServerConfigError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for ServerConfigError
impl !RefUnwindSafe for ServerConfigError
impl Send for ServerConfigError
impl Sync for ServerConfigError
impl Unpin for ServerConfigError
impl !UnwindSafe for ServerConfigError
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