pub struct SQLBatchError {
pub error: SQLError,
pub statement_index: Option<usize>,
}Expand description
An atomic batch failure with its original SQL error and, when known, zero-based member. Transaction begin, commit and rollback failures are not attributed to a member.
Fields§
§error: SQLError§statement_index: Option<usize>Implementations§
Source§impl SQLBatchError
impl SQLBatchError
pub const fn statement(error: SQLError, statement_index: usize) -> Self
pub const fn transaction(error: SQLError) -> Self
pub fn into_error(self) -> SQLError
Trait Implementations§
Source§impl Debug for SQLBatchError
impl Debug for SQLBatchError
Source§impl Display for SQLBatchError
impl Display for SQLBatchError
Source§impl Error for SQLBatchError
impl Error for SQLBatchError
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 SQLBatchError
impl RefUnwindSafe for SQLBatchError
impl Send for SQLBatchError
impl Sync for SQLBatchError
impl Unpin for SQLBatchError
impl UnsafeUnpin for SQLBatchError
impl UnwindSafe for SQLBatchError
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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 more