pub type cef_resource_read_callback_t = _cef_resource_read_callback_t;Expand description
Callback for asynchronous continuation of cef_resource_handler_t::read().
NOTE: This struct is allocated DLL-side.
Aliased Type§
#[repr(C)]pub struct cef_resource_read_callback_t {
pub base: _cef_base_ref_counted_t,
pub cont: Option<unsafe extern "C" fn(*mut _cef_resource_read_callback_t, i32)>,
}Fields§
§base: _cef_base_ref_counted_tBase structure.
cont: Option<unsafe extern "C" fn(*mut _cef_resource_read_callback_t, i32)>Callback for asynchronous continuation of read(). If |bytes_read| == 0 the response will be considered complete. If |bytes_read| > 0 then read() will be called again until the request is complete (based on either the result or the expected content length). If |bytes_read| < 0 then the request will fail and the |bytes_read| value will be treated as the error code.