pub enum FirstCallExpectation<T> {
    Ok,
    OkValue(T),
    Win32Error(WIN32_ERROR),
    HResultError(HRESULT),
}Expand description
Defining the return value of the first call of dual_call() that is the precondition to continue with the second call.
Variants§
Ok
Useful with a function like GetKeyboardLayoutList().
OkValue(T)
Useful with a function like AssocQueryStringW().
Win32Error(WIN32_ERROR)
The most useful. Requires ERROR_INSUFFICIENT_BUFFER most often, if not documented.
HResultError(HRESULT)
Useful with a function like AssocQueryStringW() (in ASSOCF_NOTRUNCATE mode).
Auto Trait Implementations§
impl<T> RefUnwindSafe for FirstCallExpectation<T>where
    T: RefUnwindSafe,
impl<T> Send for FirstCallExpectation<T>where
    T: Send,
impl<T> Sync for FirstCallExpectation<T>where
    T: Sync,
impl<T> Unpin for FirstCallExpectation<T>where
    T: Unpin,
impl<T> UnwindSafe for FirstCallExpectation<T>where
    T: UnwindSafe,
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