pub enum FromSqlError {
InvalidType {
src: Cow<'static, str>,
dst: Cow<'static, str>,
},
OutOfRange,
UnsupportedOperation,
}
Expand description
This type enumerates cast from sql type errors.
Variants§
Trait Implementations§
Source§impl Clone for FromSqlError
impl Clone for FromSqlError
Source§fn clone(&self) -> FromSqlError
fn clone(&self) -> FromSqlError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FromSqlError
impl Debug for FromSqlError
Source§impl Display for FromSqlError
impl Display for FromSqlError
Source§impl Error for FromSqlError
impl Error for FromSqlError
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()
Auto Trait Implementations§
impl Freeze for FromSqlError
impl RefUnwindSafe for FromSqlError
impl Send for FromSqlError
impl Sync for FromSqlError
impl Unpin for FromSqlError
impl UnwindSafe for FromSqlError
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