#[repr(C)]pub struct _cef_resource_read_callback_t {
pub base: cef_base_ref_counted_t,
pub cont: Option<unsafe extern "C" fn(self_: *mut _cef_resource_read_callback_t, bytes_read: c_int)>,
}Expand description
Callback for asynchronous continuation of cef_resource_handler_t::read().
NOTE: This struct is allocated DLL-side.
Fields§
§base: cef_base_ref_counted_tBase structure.
cont: Option<unsafe extern "C" fn(self_: *mut _cef_resource_read_callback_t, bytes_read: c_int)>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.
Trait Implementations§
Source§impl Clone for _cef_resource_read_callback_t
impl Clone for _cef_resource_read_callback_t
Source§fn clone(&self) -> _cef_resource_read_callback_t
fn clone(&self) -> _cef_resource_read_callback_t
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for _cef_resource_read_callback_t
Auto Trait Implementations§
impl Freeze for _cef_resource_read_callback_t
impl RefUnwindSafe for _cef_resource_read_callback_t
impl Send for _cef_resource_read_callback_t
impl Sync for _cef_resource_read_callback_t
impl Unpin for _cef_resource_read_callback_t
impl UnwindSafe for _cef_resource_read_callback_t
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more