pub struct CommandHandler(/* private fields */);Expand description
See _cef_command_handler_t for more documentation.
Implementations§
Source§impl CommandHandler
impl CommandHandler
pub fn new<T>(interface: T) -> Selfwhere
T: WrapCommandHandler,
Trait Implementations§
Source§impl Clone for CommandHandler
impl Clone for CommandHandler
Source§fn clone(&self) -> CommandHandler
fn clone(&self) -> CommandHandler
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_command_handler_t> for &CommandHandler
impl ConvertParam<*mut _cef_command_handler_t> for &CommandHandler
fn into_raw(self) -> *mut _cef_command_handler_t
Source§impl ConvertParam<*mut _cef_command_handler_t> for &mut CommandHandler
impl ConvertParam<*mut _cef_command_handler_t> for &mut CommandHandler
fn into_raw(self) -> *mut _cef_command_handler_t
Source§impl ConvertReturnValue<CommandHandler> for *mut _cef_command_handler_t
impl ConvertReturnValue<CommandHandler> for *mut _cef_command_handler_t
fn wrap_result(self) -> CommandHandler
Source§impl From<CommandHandler> for *mut _cef_command_handler_t
impl From<CommandHandler> for *mut _cef_command_handler_t
Source§fn from(value: CommandHandler) -> Self
fn from(value: CommandHandler) -> Self
Converts to this type from the input type.
Source§impl ImplCommandHandler for CommandHandler
impl ImplCommandHandler for CommandHandler
Source§fn on_chrome_command(
&self,
browser: Option<&mut Browser>,
command_id: c_int,
disposition: WindowOpenDisposition,
) -> c_int
fn on_chrome_command( &self, browser: Option<&mut Browser>, command_id: c_int, disposition: WindowOpenDisposition, ) -> c_int
See
_cef_command_handler_t::on_chrome_command for more documentation.See
_cef_command_handler_t::is_chrome_app_menu_item_visible for more documentation.See
_cef_command_handler_t::is_chrome_app_menu_item_enabled for more documentation.Source§fn is_chrome_page_action_icon_visible(
&self,
icon_type: ChromePageActionIconType,
) -> c_int
fn is_chrome_page_action_icon_visible( &self, icon_type: ChromePageActionIconType, ) -> c_int
See
_cef_command_handler_t::is_chrome_page_action_icon_visible for more documentation.See
_cef_command_handler_t::is_chrome_toolbar_button_visible for more documentation.fn get_raw(&self) -> *mut _cef_command_handler_t
fn init_methods(object: &mut _cef_command_handler_t)
Source§impl Rc for CommandHandler
impl Rc for CommandHandler
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 CommandHandler
impl RefUnwindSafe for CommandHandler
impl Send for CommandHandler
impl Sync for CommandHandler
impl Unpin for CommandHandler
impl UnwindSafe for CommandHandler
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