#[non_exhaustive]pub enum PlanBuildError {
Schema(SchemaError),
Custom(CustomPlanError),
}Expand description
Error union returned by the plan-time decode hooks (FromCell::build_plan,
FromRow::build_plan, and CellPlan resolution).
This keeps plan hooks limited to schema failures and custom validation failures. At the connector boundary, each
variant maps to crate::Error with ErrorKind::Decode.
Like SchemaError, this enum is non-exhaustive: downstream crates can build variants and convert through the
From impls, but cannot match it exhaustively.
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 structured schema mismatch, from column resolution or a built-in column-type check.
Custom(CustomPlanError)
A hand-written plan’s free-form validation failure.
Trait Implementations§
Source§impl Debug for PlanBuildError
impl Debug for PlanBuildError
Source§impl Display for PlanBuildError
impl Display for PlanBuildError
Source§impl Error for PlanBuildError
impl Error for PlanBuildError
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<CustomPlanError> for PlanBuildError
impl From<CustomPlanError> for PlanBuildError
Source§fn from(error: CustomPlanError) -> Self
fn from(error: CustomPlanError) -> Self
Converts to this type from the input type.
Source§impl From<PlanBuildError> for Error
impl From<PlanBuildError> for Error
Source§fn from(error: PlanBuildError) -> Self
fn from(error: PlanBuildError) -> Self
Converts to this type from the input type.
Source§impl From<SchemaError> for PlanBuildError
impl From<SchemaError> for PlanBuildError
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 PlanBuildError
impl !UnwindSafe for PlanBuildError
impl Freeze for PlanBuildError
impl Send for PlanBuildError
impl Sync for PlanBuildError
impl Unpin for PlanBuildError
impl UnsafeUnpin for PlanBuildError
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