[−][src]Type Definition libnghttp2_sys::nghttp2_on_frame_not_send_callback
type nghttp2_on_frame_not_send_callback = Option<unsafe extern "C" fn(session: *mut nghttp2_session, frame: *const nghttp2_frame, lib_error_code: c_int, user_data: *mut c_void) -> c_int>;
@functypedef
Callback function invoked after the non-DATA frame |frame| is not
sent because of the error. The error is indicated by the
|lib_error_code|, which is one of the values defined in
:type:nghttp2_error
. 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
.
nghttp2_session_get_stream_user_data()
can be used to get
associated data.
To set this callback to :type:nghttp2_session_callbacks
, use
nghttp2_session_callbacks_set_on_frame_not_send_callback()
.