pub enum ConnectionError {
InvalidUrl(String),
UnknownDriver(String),
MissingField(String),
InvalidOption {
key: String,
message: String,
},
EnvNotFound(String),
InvalidEnvValue {
name: String,
message: String,
},
Config(String),
}Expand description
Errors that can occur during connection string parsing.
Variants§
InvalidUrl(String)
Invalid URL format.
UnknownDriver(String)
Unknown database driver.
MissingField(String)
Missing required field.
InvalidOption
Invalid option value.
EnvNotFound(String)
Environment variable not found.
InvalidEnvValue
Invalid environment variable value.
Config(String)
Configuration error.
Trait Implementations§
Source§impl Debug for ConnectionError
impl Debug for ConnectionError
Source§impl Display for ConnectionError
impl Display for ConnectionError
Source§impl Error for ConnectionError
impl Error for ConnectionError
1.30.0§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§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 ConnectionError
impl RefUnwindSafe for ConnectionError
impl Send for ConnectionError
impl Sync for ConnectionError
impl Unpin for ConnectionError
impl UnwindSafe for ConnectionError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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<E> IntoQueryError for E
impl<E> IntoQueryError for E
Source§fn into_query_error(self) -> QueryError
fn into_query_error(self) -> QueryError
Convert to a QueryError.