Enum oaidl::FromSafeArrElemError
source · pub enum FromSafeArrElemError {
GetElementFailed {
hr: i32,
},
BStringFailed(Box<BStringError>),
FromVarError(Box<FromVariantError>),
}
Expand description
Errors for converting from C/C++ data structure to Rust types
Variants§
GetElementFailed
The unsafe call to SafeArrayGetElement failed - HRESULT stored within tells why
BStringFailed(Box<BStringError>)
Holds a BStringError
in a box.
FromVarError(Box<FromVariantError>)
[from_variant
] failed somehow. Error is stored in a box.
Trait Implementations§
source§impl Debug for FromSafeArrElemError
impl Debug for FromSafeArrElemError
source§impl Display for FromSafeArrElemError
impl Display for FromSafeArrElemError
source§impl Fail for FromSafeArrElemError
impl Fail for FromSafeArrElemError
source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresource§impl From<FromSafeArrElemError> for ElementError
impl From<FromSafeArrElemError> for ElementError
source§fn from(fsaee: FromSafeArrElemError) -> ElementError
fn from(fsaee: FromSafeArrElemError) -> ElementError
Holds a FromSafeArrElemError
with a box. This means conversion is free.
source§impl From<FromVariantError> for FromSafeArrElemError
impl From<FromVariantError> for FromSafeArrElemError
source§fn from(fve: FromVariantError) -> FromSafeArrElemError
fn from(fve: FromVariantError) -> FromSafeArrElemError
Boxes a FromVariantError
into a FromSafeArrElemError
which means the conversion is free.