pub enum ExcelCallError {
BackendUnavailable,
InvalidArgumentCount {
function: &'static str,
count: usize,
},
IllegalContext {
function: &'static str,
context: CallPermission,
},
ExcelFailure {
function: &'static str,
code: ExcelReturnCode,
},
MalformedResult {
function: &'static str,
expected: &'static str,
actual: &'static str,
},
InvalidModuleNameUtf16,
InvalidExcelSerialTime,
ResultConversion(ExcelOwnedConversionError),
ResultRelease(ExcelReleaseError),
Registration(RegistrationError),
}Expand description
Failure of descriptor validation, typed invocation, or result handling.
Variants§
No linked Excel12v callback entry point is available.
InvalidArgumentCount
The descriptor does not permit the supplied argument count.
IllegalContext
The actual typed context lacks this operation’s capability.
Fields
§
context: CallPermissionCapability represented by the attempted context.
ExcelFailure
Excel returned an exact non-success result code.
Fields
§
code: ExcelReturnCodeExact raw result code.
MalformedResult
A result root’s tag did not match the documented contract.
Fields
InvalidModuleNameUtf16
Excel supplied a module name with invalid UTF-16.
InvalidExcelSerialTime
An experimental Excel serial time was non-finite.
ResultConversion(ExcelOwnedConversionError)
Deep copying an Excel-owned result failed.
ResultRelease(ExcelReleaseError)
Releasing an Excel-owned result failed.
Registration(RegistrationError)
A registration descriptor was invalid.
Trait Implementations§
Source§impl Clone for ExcelCallError
impl Clone for ExcelCallError
Source§impl Debug for ExcelCallError
impl Debug for ExcelCallError
Source§impl Display for ExcelCallError
impl Display for ExcelCallError
impl Eq for ExcelCallError
Source§impl Error for ExcelCallError
impl Error for ExcelCallError
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()
Source§impl From<ExcelCallError> for LifecycleError
impl From<ExcelCallError> for LifecycleError
Source§fn from(value: ExcelCallError) -> Self
fn from(value: ExcelCallError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExcelCallError
impl PartialEq for ExcelCallError
impl StructuralPartialEq for ExcelCallError
Auto Trait Implementations§
impl Freeze for ExcelCallError
impl RefUnwindSafe for ExcelCallError
impl Send for ExcelCallError
impl Sync for ExcelCallError
impl Unpin for ExcelCallError
impl UnsafeUnpin for ExcelCallError
impl UnwindSafe for ExcelCallError
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