pub enum DbCopyError {
DestinationTablesExist(Vec<String>),
DestinationCheckFailed(String),
SourceTableOpenFailed(String),
DestinationTableOpenFailed(String),
TableCopyFailed(String),
TransactionFailed(String),
CommitFailed(String),
}Expand description
Errors returned by database copy operations.
Variants§
DestinationTablesExist(Vec<String>)
One or more destination tables already exist.
DestinationCheckFailed(String)
Failed to check destination tables.
SourceTableOpenFailed(String)
Failed to open a source table.
DestinationTableOpenFailed(String)
Failed to open a destination table.
TableCopyFailed(String)
Failed while copying table contents.
TransactionFailed(String)
Transaction failures during copy.
CommitFailed(String)
Failed to commit the destination transaction.
Trait Implementations§
Source§impl Debug for DbCopyError
impl Debug for DbCopyError
Source§impl Display for DbCopyError
impl Display for DbCopyError
Source§impl Error for DbCopyError
impl Error for DbCopyError
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()
Source§impl From<DbCopyError> for Error
impl From<DbCopyError> for Error
Source§fn from(err: DbCopyError) -> Self
fn from(err: DbCopyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DbCopyError
impl RefUnwindSafe for DbCopyError
impl Send for DbCopyError
impl Sync for DbCopyError
impl Unpin for DbCopyError
impl UnwindSafe for DbCopyError
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