Enum oaidl::FromSafeArrayError [−][src]
pub enum FromSafeArrayError { SafeArrayDimsInvalid { sa_dims: u32, }, VarTypeDoesNotMatch { expected: u32, found: u32, }, SafeArrayLBoundFailed { hr: i32, }, SafeArrayRBoundFailed { hr: i32, }, SafeArrayGetVartypeFailed { hr: i32, }, ElementConversionFailed { index: usize, element: Box<ElementError>, }, }
Represents the different ways converting from SAFEARRAY
can fail
Variants
SafeArrayDimsInvalid
Either the safe array dimensions = 0 or > 1 multi-dimensional arrays are not handled.
Fields of SafeArrayDimsInvalid
sa_dims: u32 | safe array dimensions that was wrong |
VarTypeDoesNotMatch
Expected vartype did not match found vartype - runtime consistency check
Fields of VarTypeDoesNotMatch
expected: u32 | The expected vartype |
found: u32 | the found vartype |
SafeArrayLBoundFailed
Call to SafeArrayGetLBound failed
Fields of SafeArrayLBoundFailed
hr: i32 | HRESULT returned |
SafeArrayRBoundFailed
Call to SafeArrayGetRBound failed
Fields of SafeArrayRBoundFailed
hr: i32 | HRESULT returned |
SafeArrayGetVartypeFailed
Call to SafeArrayGetVartype failed
Fields of SafeArrayGetVartypeFailed
hr: i32 | HRESULT returned |
ElementConversionFailed
Encapsulates the ElementError
that occurred during conversion
Fields of ElementConversionFailed
index: usize | the index the conversion failed at |
element: Box<ElementError> | The element error encapsulating the failure |
Methods
impl FromSafeArrayError
[src]
impl FromSafeArrayError
pub fn from_element_err<E: Into<ElementError>>(
ee: E,
index: usize
) -> FromSafeArrayError
[src]
pub fn from_element_err<E: Into<ElementError>>(
ee: E,
index: usize
) -> FromSafeArrayError
converts an ElementError
into a FromSafeArrayError
Need the index so a From impl doesn't apply
Trait Implementations
impl Debug for FromSafeArrayError
[src]
impl Debug for FromSafeArrayError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<FromSafeArrayError> for SafeArrayError
[src]
impl From<FromSafeArrayError> for SafeArrayError
fn from(fsae: FromSafeArrayError) -> SafeArrayError
[src]
fn from(fsae: FromSafeArrayError) -> SafeArrayError
Performs the conversion.
Auto Trait Implementations
impl Send for FromSafeArrayError
impl Send for FromSafeArrayError
impl Sync for FromSafeArrayError
impl Sync for FromSafeArrayError