ImplCommandHandler

Trait ImplCommandHandler 

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

    // Provided methods
    fn on_chrome_command(
        &self,
        browser: Option<&mut Browser>,
        command_id: c_int,
        disposition: WindowOpenDisposition,
    ) -> c_int { ... }
    fn is_chrome_app_menu_item_visible(
        &self,
        browser: Option<&mut Browser>,
        command_id: c_int,
    ) -> c_int { ... }
    fn is_chrome_app_menu_item_enabled(
        &self,
        browser: Option<&mut Browser>,
        command_id: c_int,
    ) -> c_int { ... }
    fn is_chrome_page_action_icon_visible(
        &self,
        icon_type: ChromePageActionIconType,
    ) -> c_int { ... }
    fn is_chrome_toolbar_button_visible(
        &self,
        button_type: ChromeToolbarButtonType,
    ) -> c_int { ... }
    fn init_methods(object: &mut _cef_command_handler_t) { ... }
}

Required Methods§

Provided Methods§

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§