ImplResourceBundleHandler

Trait ImplResourceBundleHandler 

Source
pub trait ImplResourceBundleHandler:
    Clone
    + Sized
    + Rc {
    // Required method
    fn get_raw(&self) -> *mut _cef_resource_bundle_handler_t;

    // Provided methods
    fn localized_string(
        &self,
        string_id: c_int,
        string: Option<&mut CefString>,
    ) -> c_int { ... }
    fn data_resource(
        &self,
        resource_id: c_int,
        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 { ... }
    fn init_methods(object: &mut _cef_resource_bundle_handler_t) { ... }
}

Required Methods§

Provided Methods§

Source

fn localized_string( &self, string_id: c_int, string: Option<&mut CefString>, ) -> c_int

Source

fn data_resource(&self, resource_id: c_int, data: Option<&mut Vec<u8>>) -> c_int

Source

fn data_resource_for_scale( &self, resource_id: c_int, scale_factor: ScaleFactor, data: Option<&mut Vec<u8>>, ) -> c_int

Source

fn init_methods(object: &mut _cef_resource_bundle_handler_t)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§