#[non_exhaustive]pub enum RowDecodeError {
Schema(SchemaError),
Cell(CellDecodeError),
Conversion(RowConversionError),
}Expand description
Error union returned by FromRow::from_row_with_plan.
The Schema variant lets a hand-written row decoder propagate a dynamic
RowRef::cell_at lookup failure with ?.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Schema(SchemaError)
A dynamic column lookup failed, e.g. from RowRef::cell_at.
Cell(CellDecodeError)
A cell failed to decode, surfaced through RowRef::get_with_plan.
Conversion(RowConversionError)
A hand-written row decoder rejected an otherwise-decoded row.
Trait Implementations§
Source§impl Debug for RowDecodeError
impl Debug for RowDecodeError
Source§impl Display for RowDecodeError
impl Display for RowDecodeError
Source§impl Error for RowDecodeError
impl Error for RowDecodeError
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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<CellDecodeError> for RowDecodeError
impl From<CellDecodeError> for RowDecodeError
Source§fn from(error: CellDecodeError) -> Self
fn from(error: CellDecodeError) -> Self
Converts to this type from the input type.
Source§impl From<RowConversionError> for RowDecodeError
impl From<RowConversionError> for RowDecodeError
Source§fn from(error: RowConversionError) -> Self
fn from(error: RowConversionError) -> Self
Converts to this type from the input type.
Source§impl From<RowDecodeError> for Error
impl From<RowDecodeError> for Error
Source§fn from(error: RowDecodeError) -> Self
fn from(error: RowDecodeError) -> Self
Converts to this type from the input type.
Source§impl From<SchemaError> for RowDecodeError
impl From<SchemaError> for RowDecodeError
Source§fn from(error: SchemaError) -> Self
fn from(error: SchemaError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RowDecodeError
impl !UnwindSafe for RowDecodeError
impl Freeze for RowDecodeError
impl Send for RowDecodeError
impl Sync for RowDecodeError
impl Unpin for RowDecodeError
impl UnsafeUnpin for RowDecodeError
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