Async

Trait Async 

Source
pub trait Async<V: OdbcVersion>: Handle {
    // Provided method
    fn SQLCompleteAsync(
        &mut self,
        AsyncRetCodePtr: &mut impl AsMutPtr<RETCODE>,
    ) -> SQLRETURN { ... }
}

Provided Methods§

Source

fn SQLCompleteAsync( &mut self, AsyncRetCodePtr: &mut impl AsMutPtr<RETCODE>, ) -> SQLRETURN

Can be used to determine when an asynchronous function is complete using either notification- or polling-based processing. For more information about asynchronous operations, see Asynchronous Execution. SQLCompleteAsync is only implemented in the ODBC Driver Manager. In notification based asynchronous processing mode, SQLCompleteAsync must be called after the Driver Manager raises the event object used for notification. SQLCompleteAsync completes the asynchronous processing and the asynchronous function will generate a return code. In polling based asynchronous processing mode, SQLCompleteAsync is an alternative to calling the original asynchronous function, without needing to specify the arguments in the original asynchronous function call. SQLCompleteAsync can be used regardless whether the ODBC Cursor Library is enabled.

For complete documentation on SQLCompleteAsync, see API reference.

§Returns

SQL_SUCCESS, SQL_ERROR, SQL_NO_DATA, or SQL_INVALID_HANDLE.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Async<SQL_OV_ODBC3_80> for SQLHDBC<'_, C4, SQL_OV_ODBC3_80>

Source§

impl Async<SQL_OV_ODBC4> for SQLHDBC<'_, C4, SQL_OV_ODBC4>

Source§

impl<'desc, 'buf, S: Statement<'desc, 'buf, SQL_OV_ODBC3_80>> Async<SQL_OV_ODBC3_80> for S

Source§

impl<'desc, 'buf, S: Statement<'desc, 'buf, SQL_OV_ODBC4>> Async<SQL_OV_ODBC4> for S