pub enum ThunkError {
NullArgument,
Decode(DecodeError),
Conversion(ConversionError),
Function(ExcelError),
ReturnPlanning(ReturnError),
Materialization(ReturnMaterializationError),
}Expand description
Failure contained by a generated Excel callback thunk.
Variants§
NullArgument
Excel supplied a null argument root where a value was required.
Decode(DecodeError)
The callback-borrowed argument could not be decoded safely.
Conversion(ConversionError)
A decoded argument could not become the requested Rust input.
Function(ExcelError)
User function code deliberately returned a worksheet error.
ReturnPlanning(ReturnError)
Pointer-free return planning failed.
Materialization(ReturnMaterializationError)
Stable ABI return storage could not be materialized.
Trait Implementations§
Source§impl Debug for ThunkError
impl Debug for ThunkError
Source§impl Display for ThunkError
impl Display for ThunkError
Source§impl Error for ThunkError
impl Error for ThunkError
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 ThunkError
impl RefUnwindSafe for ThunkError
impl Send for ThunkError
impl Sync for ThunkError
impl Unpin for ThunkError
impl UnsafeUnpin for ThunkError
impl UnwindSafe for ThunkError
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