pub struct Conflict<T: Table> { /* private fields */ }Expand description
Error type that is used by crate::Transaction::insert and crate::Mutable::unique when there are at least two unique constraints.
The source of the error is the message received from sqlite. It contains the column names that were conflicted.
Trait Implementations§
Source§impl<T: Table> Error for Conflict<T>
impl<T: Table> Error for Conflict<T>
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<T> Freeze for Conflict<T>
impl<T> !RefUnwindSafe for Conflict<T>
impl<T> !Send for Conflict<T>
impl<T> !Sync for Conflict<T>
impl<T> Unpin for Conflict<T>where
T: Unpin,
impl<T> UnsafeUnpin for Conflict<T>
impl<T> !UnwindSafe for Conflict<T>
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