pub enum SqlError {
Io(Error),
Protocol(String),
Server {
code: u16,
sql_state: String,
message: String,
},
RowNotFound,
ColumnNotFound(String),
ColumnIndexOutOfBounds {
len: usize,
index: usize,
},
Decode(String),
Other(String),
}Variants§
Io(Error)
Protocol(String)
Server
RowNotFound
ColumnNotFound(String)
ColumnIndexOutOfBounds
Decode(String)
Other(String)
Trait Implementations§
Source§impl Error for SqlError
impl Error for SqlError
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 !RefUnwindSafe for SqlError
impl !UnwindSafe for SqlError
impl Freeze for SqlError
impl Send for SqlError
impl Sync for SqlError
impl Unpin for SqlError
impl UnsafeUnpin for SqlError
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