Function rdkafka_sys::bindings::rd_kafka_conf_set_closesocket_cb [] [src]

pub unsafe extern "C" fn rd_kafka_conf_set_closesocket_cb(
    conf: *mut rd_kafka_conf_t,
    closesocket_cb: Option<unsafe extern "C" fn(_: c_int, _: *mut c_void) -> c_int>
)

@brief Set close socket callback.

Close a socket (optionally opened with socket_cb()).

@remark The callback will be called from an internal librdkafka thread.