pub enum ComError {
Hresult {
code: i32,
context: &'static str,
dispid: i32,
},
UnexpectedType {
expected: &'static str,
actual: &'static str,
},
}Expand description
A failure originating in the COM dispatch layer.
This is the low-level error type. The public rs-teststand crate maps it
onto the public crate’s Error (HRESULT → named variant).
Variants§
Hresult
A COM call returned a failing HRESULT.
Fields
UnexpectedType
A returned VARIANT did not hold the type the caller expected.
Implementations§
Trait Implementations§
impl Eq for ComError
Source§impl Error for ComError
impl Error for ComError
1.30.0 · 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()
impl StructuralPartialEq for ComError
Auto Trait Implementations§
impl Freeze for ComError
impl RefUnwindSafe for ComError
impl Send for ComError
impl Sync for ComError
impl Unpin for ComError
impl UnsafeUnpin for ComError
impl UnwindSafe for ComError
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