Enum StatementRunError
pub enum StatementRunError {
Malformed(String),
Unsupported {
code: &'static str,
message: String,
},
ValueUnsupported(String),
ResultLimit(String),
Sqlite(Error),
}Variants§
Implementations§
§impl StatementRunError
impl StatementRunError
pub fn code(&self) -> &'static str
pub fn sqlite_code(&self) -> Option<i32>
Trait Implementations§
§impl Debug for StatementRunError
impl Debug for StatementRunError
§impl Display for StatementRunError
impl Display for StatementRunError
§impl Error for StatementRunError
impl Error for StatementRunError
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()
§impl From<Error> for StatementRunError
impl From<Error> for StatementRunError
§fn from(value: Error) -> StatementRunError
fn from(value: Error) -> StatementRunError
Converts to this type from the input type.
§impl From<StatementRunError> for BookkeepingError
impl From<StatementRunError> for BookkeepingError
§fn from(error: StatementRunError) -> BookkeepingError
fn from(error: StatementRunError) -> BookkeepingError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StatementRunError
impl !RefUnwindSafe for StatementRunError
impl Send for StatementRunError
impl Sync for StatementRunError
impl Unpin for StatementRunError
impl UnsafeUnpin for StatementRunError
impl !UnwindSafe for StatementRunError
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