pub enum Error {
Open(OpenError),
Configure(ConfigureError),
Prepare(PrepareError),
Bind(BindError),
Step(StepError),
Decode(DecodeError),
Reset(ResetError),
}Variants§
Open(OpenError)
an error when failed to open a database
Configure(ConfigureError)
an error when failed to configure database
Prepare(PrepareError)
an error when failed to create prepared statement
Bind(BindError)
an error when failed to bind value to parameter
Step(StepError)
an error when failed to get the next row
Decode(DecodeError)
an error when failed to decode value
Reset(ResetError)
an error when failed to reset or clear binding prepared statement
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<ConfigureError> for Error
impl From<ConfigureError> for Error
Source§fn from(value: ConfigureError) -> Self
fn from(value: ConfigureError) -> Self
Converts to this type from the input type.
Source§impl From<DecodeError> for Error
impl From<DecodeError> for Error
Source§fn from(value: DecodeError) -> Self
fn from(value: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<PrepareError> for Error
impl From<PrepareError> for Error
Source§fn from(value: PrepareError) -> Self
fn from(value: PrepareError) -> Self
Converts to this type from the input type.
Source§impl From<ResetError> for Error
impl From<ResetError> for Error
Source§fn from(value: ResetError) -> Self
fn from(value: ResetError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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