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.
Auto Trait Implementations§
impl RefUnwindSafe for FromSafeArrElemError
impl Send for FromSafeArrElemError
impl Sync for FromSafeArrElemError
impl Unpin for FromSafeArrElemError
impl UnwindSafe for FromSafeArrElemError
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
source§impl<T, F> TryConvert<T, F> for Twhere
T: From<T>,
F: Fail,
impl<T, F> TryConvert<T, F> for Twhere T: From<T>, F: Fail,
source§fn try_convert(val: T) -> Result<T, F>
fn try_convert(val: T) -> Result<T, F>
Blanket TryConvert implementation wherever a From