pub enum DbCliError {
MissingProvider,
MissingDatabaseUrl(String),
UnsupportedAdapter(String),
AdapterFeatureDisabled(String, String),
UnsupportedProvider(String),
UnsafeMigration,
DuplicateMigration(String),
RustAuth(RustAuthError),
Write {
path: PathBuf,
source: Error,
},
Read {
path: PathBuf,
source: Error,
},
CreateDir {
path: PathBuf,
source: Error,
},
TimeFormat(Format),
}Variants§
MissingProvider
MissingDatabaseUrl(String)
UnsupportedAdapter(String)
AdapterFeatureDisabled(String, String)
UnsupportedProvider(String)
UnsafeMigration
DuplicateMigration(String)
RustAuth(RustAuthError)
Write
Read
CreateDir
TimeFormat(Format)
Trait Implementations§
Source§impl Debug for DbCliError
impl Debug for DbCliError
Source§impl Display for DbCliError
impl Display for DbCliError
Source§impl Error for DbCliError
impl Error for DbCliError
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<Format> for DbCliError
impl From<Format> for DbCliError
Source§impl From<RustAuthError> for DbCliError
impl From<RustAuthError> for DbCliError
Source§fn from(source: RustAuthError) -> Self
fn from(source: RustAuthError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DbCliError
impl !UnwindSafe for DbCliError
impl Freeze for DbCliError
impl Send for DbCliError
impl Sync for DbCliError
impl Unpin for DbCliError
impl UnsafeUnpin for DbCliError
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