pub struct ResourceHandler(/* private fields */);Expand description
See _cef_resource_handler_t for more documentation.
Implementations§
Source§impl ResourceHandler
impl ResourceHandler
pub fn new<T>(interface: T) -> Selfwhere
T: WrapResourceHandler,
Trait Implementations§
Source§impl Clone for ResourceHandler
impl Clone for ResourceHandler
Source§fn clone(&self) -> ResourceHandler
fn clone(&self) -> ResourceHandler
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 moreSource§impl ConvertParam<*mut _cef_resource_handler_t> for &ResourceHandler
impl ConvertParam<*mut _cef_resource_handler_t> for &ResourceHandler
fn into_raw(self) -> *mut _cef_resource_handler_t
Source§impl ConvertParam<*mut _cef_resource_handler_t> for &mut ResourceHandler
impl ConvertParam<*mut _cef_resource_handler_t> for &mut ResourceHandler
fn into_raw(self) -> *mut _cef_resource_handler_t
Source§impl ConvertReturnValue<ResourceHandler> for *mut _cef_resource_handler_t
impl ConvertReturnValue<ResourceHandler> for *mut _cef_resource_handler_t
fn wrap_result(self) -> ResourceHandler
Source§impl From<ResourceHandler> for *mut _cef_resource_handler_t
impl From<ResourceHandler> for *mut _cef_resource_handler_t
Source§fn from(value: ResourceHandler) -> Self
fn from(value: ResourceHandler) -> Self
Converts to this type from the input type.
Source§impl ImplResourceHandler for ResourceHandler
impl ImplResourceHandler for ResourceHandler
Source§fn open(
&self,
request: Option<&mut Request>,
handle_request: Option<&mut c_int>,
callback: Option<&mut Callback>,
) -> c_int
fn open( &self, request: Option<&mut Request>, handle_request: Option<&mut c_int>, callback: Option<&mut Callback>, ) -> c_int
See
_cef_resource_handler_t::open for more documentation.Source§fn process_request(
&self,
request: Option<&mut Request>,
callback: Option<&mut Callback>,
) -> c_int
fn process_request( &self, request: Option<&mut Request>, callback: Option<&mut Callback>, ) -> c_int
See
_cef_resource_handler_t::process_request for more documentation.Source§fn response_headers(
&self,
response: Option<&mut Response>,
response_length: Option<&mut i64>,
redirect_url: Option<&mut CefString>,
)
fn response_headers( &self, response: Option<&mut Response>, response_length: Option<&mut i64>, redirect_url: Option<&mut CefString>, )
See
_cef_resource_handler_t::get_response_headers for more documentation.Source§fn skip(
&self,
bytes_to_skip: i64,
bytes_skipped: Option<&mut i64>,
callback: Option<&mut ResourceSkipCallback>,
) -> c_int
fn skip( &self, bytes_to_skip: i64, bytes_skipped: Option<&mut i64>, callback: Option<&mut ResourceSkipCallback>, ) -> c_int
See
_cef_resource_handler_t::skip for more documentation.Source§fn read(
&self,
data_out: *mut u8,
bytes_to_read: c_int,
bytes_read: Option<&mut c_int>,
callback: Option<&mut ResourceReadCallback>,
) -> c_int
fn read( &self, data_out: *mut u8, bytes_to_read: c_int, bytes_read: Option<&mut c_int>, callback: Option<&mut ResourceReadCallback>, ) -> c_int
See
_cef_resource_handler_t::read for more documentation.Source§fn read_response(
&self,
data_out: *mut u8,
bytes_to_read: c_int,
bytes_read: Option<&mut c_int>,
callback: Option<&mut Callback>,
) -> c_int
fn read_response( &self, data_out: *mut u8, bytes_to_read: c_int, bytes_read: Option<&mut c_int>, callback: Option<&mut Callback>, ) -> c_int
See
_cef_resource_handler_t::read_response for more documentation.Source§fn cancel(&self)
fn cancel(&self)
See
_cef_resource_handler_t::cancel for more documentation.fn get_raw(&self) -> *mut _cef_resource_handler_t
fn init_methods(object: &mut _cef_resource_handler_t)
Source§impl Rc for ResourceHandler
impl Rc for ResourceHandler
Source§fn as_base(&self) -> &_cef_base_ref_counted_t
fn as_base(&self) -> &_cef_base_ref_counted_t
Get the reference of cef_base_ref_counted_t.
Source§unsafe fn release(&self) -> bool
unsafe fn release(&self) -> bool
Decrease reference count by 1 and release the value if the count meets 0.
Reuturn
True if it is released. Read moreSource§fn has_one_ref(&self) -> bool
fn has_one_ref(&self) -> bool
True if the reference count is exactly 1.Source§fn has_at_least_one_ref(&self) -> bool
fn has_at_least_one_ref(&self) -> bool
True if the reference count is larger than 0.Auto Trait Implementations§
impl Freeze for ResourceHandler
impl RefUnwindSafe for ResourceHandler
impl Send for ResourceHandler
impl Sync for ResourceHandler
impl Unpin for ResourceHandler
impl UnwindSafe for ResourceHandler
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