[][src]Function libnghttp2_sys::nghttp2_session_find_stream

pub unsafe extern "C" fn nghttp2_session_find_stream(
    session: *mut nghttp2_session,
    stream_id: i32
) -> *mut nghttp2_stream

@function

Returns pointer to :type:nghttp2_stream object denoted by |stream_id|. If stream was not found, returns NULL.

Returns imaginary root stream (see nghttp2_session_get_root_stream()) if 0 is given in |stream_id|.

Unless |stream_id| == 0, the returned pointer is valid until next call of nghttp2_session_send(), nghttp2_session_mem_send(), nghttp2_session_recv(), and nghttp2_session_mem_recv().