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

Either the safe array dimensions = 0 or > 1 multi-dimensional arrays are not handled.

Fields of SafeArrayDimsInvalid

safe array dimensions that was wrong

Expected vartype did not match found vartype - runtime consistency check

Fields of VarTypeDoesNotMatch

The expected vartype

the found vartype

Call to SafeArrayGetLBound failed

Fields of SafeArrayLBoundFailed

HRESULT returned

Call to SafeArrayGetRBound failed

Fields of SafeArrayRBoundFailed

HRESULT returned

Call to SafeArrayGetVartype failed

Fields of SafeArrayGetVartypeFailed

HRESULT returned

Encapsulates the ElementError that occurred during conversion

Fields of ElementConversionFailed

the index the conversion failed at

The element error encapsulating the failure

Methods

impl FromSafeArrayError
[src]

converts an ElementError into a FromSafeArrayError Need the index so a From impl doesn't apply

Trait Implementations

impl Debug for FromSafeArrayError
[src]

Formats the value using the given formatter. Read more

impl From<FromSafeArrayError> for SafeArrayError
[src]

Performs the conversion.

Auto Trait Implementations