pub enum FatalError {
DbConnection(Error),
Repository(RepositoryError),
Migration(MigrateError),
TcpBinding(Error),
Serve(Error),
ClientCreation(ClientCreationError),
EnvVarNotSet(String),
AuthKeyLoading(Error),
AuthKeyIo(Error),
Setup(SetupError),
Validation(ValidationErrors),
}Expand description
An error that requires the server to be shut down.
Variants§
DbConnection(Error)
Database is down or URL is incorrect.
Repository(RepositoryError)
Repository error.
Migration(MigrateError)
Error in database migration.
TcpBinding(Error)
Could not reserve an IP address with a TCP port to connect to the server.
Serve(Error)
I/O error during server’s execution loop.
ClientCreation(ClientCreationError)
EnvVarNotSet(String)
Environment variable not set.
AuthKeyLoading(Error)
Could not load the authentication key.
AuthKeyIo(Error)
Could not read the authentication key file.
Setup(SetupError)
Configuration is invalid.
Validation(ValidationErrors)
Configuration validation failed.
Trait Implementations§
Source§impl Debug for FatalError
impl Debug for FatalError
Source§impl Display for FatalError
impl Display for FatalError
Source§impl Error for FatalError
impl Error for FatalError
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<ClientCreationError> for FatalError
impl From<ClientCreationError> for FatalError
Source§fn from(source: ClientCreationError) -> Self
fn from(source: ClientCreationError) -> Self
Converts to this type from the input type.
Source§impl From<ConfigError> for FatalError
impl From<ConfigError> for FatalError
Source§fn from(e: ConfigError) -> Self
fn from(e: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for FatalError
impl From<Error> for FatalError
Source§impl From<Error> for FatalError
impl From<Error> for FatalError
Source§impl From<MigrateError> for FatalError
impl From<MigrateError> for FatalError
Source§fn from(source: MigrateError) -> Self
fn from(source: MigrateError) -> Self
Converts to this type from the input type.
Source§impl From<RepositoryError> for FatalError
impl From<RepositoryError> for FatalError
Source§fn from(source: RepositoryError) -> Self
fn from(source: RepositoryError) -> Self
Converts to this type from the input type.
Source§impl From<ValidationErrors> for FatalError
impl From<ValidationErrors> for FatalError
Source§fn from(source: ValidationErrors) -> Self
fn from(source: ValidationErrors) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for FatalError
impl !UnwindSafe for FatalError
impl Freeze for FatalError
impl Send for FatalError
impl Sync for FatalError
impl Unpin for FatalError
impl UnsafeUnpin for FatalError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP