pub enum ReturnMaterializationError {
PlanStorageInvariantMismatch {
field: &'static str,
planned: usize,
actual: usize,
},
Utf8EncodedLengthMismatch {
planned: usize,
actual: usize,
},
StringBufferLengthMismatch {
planned: usize,
actual: usize,
},
ArrayShapeMismatch {
rows: usize,
columns: usize,
elements: usize,
},
UnsupportedPlannedValue {
variant: &'static str,
},
AllocationFailure {
storage: &'static str,
},
InjectedTestFailure {
stage: &'static str,
},
}Expand description
Failure while turning a validated return plan into stable ABI storage.
Variants§
PlanStorageInvariantMismatch
Materialized storage contradicted an already validated plan field.
Fields
Utf8EncodedLengthMismatch
UTF-8 to UTF-16 encoding did not match the planned length.
StringBufferLengthMismatch
A counted-string buffer length disagreed with its plan.
ArrayShapeMismatch
Array data contradicted the shape selected during planning.
Fields
UnsupportedPlannedValue
A planned semantic variant cannot be emitted as ABI storage.
AllocationFailure
A required stable return allocation failed.
InjectedTestFailure
A test-only injected materialization failure.
Trait Implementations§
Source§impl Clone for ReturnMaterializationError
impl Clone for ReturnMaterializationError
Source§impl Debug for ReturnMaterializationError
impl Debug for ReturnMaterializationError
Source§impl Display for ReturnMaterializationError
impl Display for ReturnMaterializationError
impl Eq for ReturnMaterializationError
Source§impl Error for ReturnMaterializationError
impl Error for ReturnMaterializationError
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 StructuralPartialEq for ReturnMaterializationError
Auto Trait Implementations§
impl Freeze for ReturnMaterializationError
impl RefUnwindSafe for ReturnMaterializationError
impl Send for ReturnMaterializationError
impl Sync for ReturnMaterializationError
impl Unpin for ReturnMaterializationError
impl UnsafeUnpin for ReturnMaterializationError
impl UnwindSafe for ReturnMaterializationError
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