pub type CassAuthenticatorChallengeCallback = Option<unsafe extern "C" fn(auth: *mut CassAuthenticator, data: *mut c_void, token: *const c_char, token_size: usize)>;
Expand description

A callback used when an authentication challenge initiated by the server.

Use cass_authenticator_set_response() to set the response token.

Use cass_authenticator_set_error() if an error occurred during the challenge.

@param[in] auth @param[in] data @param[in] token @param[in] token_size

Aliased Type§

enum CassAuthenticatorChallengeCallback {
    None,
    Some(unsafe extern "C" fn(_: *mut CassAuthenticator_, _: *mut c_void, _: *const i8, _: usize)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut CassAuthenticator_, _: *mut c_void, _: *const i8, _: usize))

Some value of type T.