pub enum ReturnError {
Show 15 variants
StringTooLongForExcel {
actual: usize,
maximum: usize,
},
StringLimitExceeded {
actual: usize,
maximum: usize,
},
InvalidArrayShape {
rows: usize,
columns: usize,
elements: usize,
},
EmptyArrayUnsupported,
ArrayDimensionExceedsAbi {
rows: usize,
columns: usize,
},
ArrayElementCountOverflow {
rows: usize,
columns: usize,
},
ArrayElementLimitExceeded {
actual: usize,
maximum: usize,
},
NestedArrayUnsupported,
ReferenceUnsupported,
UnsupportedSemanticVariant {
variant: &'static str,
},
TotalByteOverflow,
TotalByteLimitExceeded {
required: usize,
maximum: usize,
},
AllocationCountOverflow,
AllocationCountLimitExceeded {
required: usize,
maximum: usize,
},
PlanningDepthExceeded {
depth: usize,
maximum: usize,
},
}Expand description
Failure to describe a future ABI-compatible Excel return.
Return errors contain only owned scalar metadata. They never contain raw pointers, callback lifetimes, or partially allocated return storage.
Variants§
StringTooLongForExcel
Text exceeds Excel’s representable counted-string limit.
StringLimitExceeded
Text exceeds the library’s configured return limit.
InvalidArrayShape
Flat elements do not match the requested return dimensions.
Fields
EmptyArrayUnsupported
Empty multidimensional ABI returns are not representable.
ArrayDimensionExceedsAbi
A dimension exceeds the Excel 12 ABI width or bounds.
ArrayElementCountOverflow
Multiplying return dimensions overflowed usize.
ArrayElementLimitExceeded
A return array exceeds its configured element budget.
NestedArrayUnsupported
Nested arrays cannot be materialized as Excel 12 return storage.
ReferenceUnsupported
Semantic references are not valid return values in this framework.
UnsupportedSemanticVariant
A semantic value variant has no supported return representation.
TotalByteOverflow
Total return-storage byte accounting overflowed.
TotalByteLimitExceeded
The return plan exceeds its aggregate allocation budget.
AllocationCountOverflow
Return allocation-count accounting overflowed.
AllocationCountLimitExceeded
The plan requires too many separate allocations.
PlanningDepthExceeded
Recursive return planning exceeded its configured depth.
Trait Implementations§
Source§impl Clone for ReturnError
impl Clone for ReturnError
Source§impl Debug for ReturnError
impl Debug for ReturnError
Source§impl Display for ReturnError
impl Display for ReturnError
impl Eq for ReturnError
Source§impl Error for ReturnError
impl Error for ReturnError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()