Type Alias libnghttp2_sys::nghttp2_on_frame_send_callback
source · pub type nghttp2_on_frame_send_callback = Option<unsafe extern "C" fn(session: *mut nghttp2_session, frame: *const nghttp2_frame, user_data: *mut c_void) -> c_int>;
Expand description
@functypedef
Callback function invoked after the frame |frame| is sent. The
|user_data| pointer is the third argument passed in to the call to
nghttp2_session_client_new()
or nghttp2_session_server_new()
.
The implementation of this function must return 0 if it succeeds.
If nonzero is returned, it is treated as fatal error and
nghttp2_session_send()
and nghttp2_session_mem_send()
functions
immediately return :enum:NGHTTP2_ERR_CALLBACK_FAILURE
.
To set this callback to :type:nghttp2_session_callbacks
, use
nghttp2_session_callbacks_set_on_frame_send_callback()
.
Aliased Type§
enum nghttp2_on_frame_send_callback {
None,
Some(unsafe extern "C" fn(_: *mut nghttp2_session, _: *const nghttp2_frame, _: *mut c_void) -> i32),
}
Variants§
None
No value.
Some(unsafe extern "C" fn(_: *mut nghttp2_session, _: *const nghttp2_frame, _: *mut c_void) -> i32)
Some value of type T
.