pub struct ResourceBundleHandler(/* private fields */);Expand description
See _cef_resource_bundle_handler_t for more documentation.
Implementations§
Source§impl ResourceBundleHandler
impl ResourceBundleHandler
pub fn new<T>(interface: T) -> Selfwhere
T: WrapResourceBundleHandler,
Trait Implementations§
Source§impl Clone for ResourceBundleHandler
impl Clone for ResourceBundleHandler
Source§fn clone(&self) -> ResourceBundleHandler
fn clone(&self) -> ResourceBundleHandler
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_bundle_handler_t> for &ResourceBundleHandler
impl ConvertParam<*mut _cef_resource_bundle_handler_t> for &ResourceBundleHandler
fn into_raw(self) -> *mut _cef_resource_bundle_handler_t
Source§impl ConvertParam<*mut _cef_resource_bundle_handler_t> for &mut ResourceBundleHandler
impl ConvertParam<*mut _cef_resource_bundle_handler_t> for &mut ResourceBundleHandler
fn into_raw(self) -> *mut _cef_resource_bundle_handler_t
Source§impl ConvertReturnValue<ResourceBundleHandler> for *mut _cef_resource_bundle_handler_t
impl ConvertReturnValue<ResourceBundleHandler> for *mut _cef_resource_bundle_handler_t
fn wrap_result(self) -> ResourceBundleHandler
Source§impl From<ResourceBundleHandler> for *mut _cef_resource_bundle_handler_t
impl From<ResourceBundleHandler> for *mut _cef_resource_bundle_handler_t
Source§fn from(value: ResourceBundleHandler) -> Self
fn from(value: ResourceBundleHandler) -> Self
Converts to this type from the input type.
Source§impl ImplResourceBundleHandler for ResourceBundleHandler
impl ImplResourceBundleHandler for ResourceBundleHandler
Source§fn localized_string(
&self,
string_id: c_int,
string: Option<&mut CefString>,
) -> c_int
fn localized_string( &self, string_id: c_int, string: Option<&mut CefString>, ) -> c_int
See
_cef_resource_bundle_handler_t::get_localized_string for more documentation.Source§fn data_resource(&self, resource_id: c_int, data: Option<&mut Vec<u8>>) -> c_int
fn data_resource(&self, resource_id: c_int, data: Option<&mut Vec<u8>>) -> c_int
See
_cef_resource_bundle_handler_t::get_data_resource for more documentation.Source§fn data_resource_for_scale(
&self,
resource_id: c_int,
scale_factor: ScaleFactor,
data: Option<&mut Vec<u8>>,
) -> c_int
fn data_resource_for_scale( &self, resource_id: c_int, scale_factor: ScaleFactor, data: Option<&mut Vec<u8>>, ) -> c_int
See
_cef_resource_bundle_handler_t::get_data_resource_for_scale for more documentation.fn get_raw(&self) -> *mut _cef_resource_bundle_handler_t
fn init_methods(object: &mut _cef_resource_bundle_handler_t)
Source§impl Rc for ResourceBundleHandler
impl Rc for ResourceBundleHandler
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 ResourceBundleHandler
impl RefUnwindSafe for ResourceBundleHandler
impl Send for ResourceBundleHandler
impl Sync for ResourceBundleHandler
impl Unpin for ResourceBundleHandler
impl UnwindSafe for ResourceBundleHandler
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