struct AgentMuxLifeSpanHandler {
inner: Arc<Mutex<AgentMuxHandler>>,
cef_object: *mut RcImpl<_cef_life_span_handler_t, Self>,
}Fields§
§inner: Arc<Mutex<AgentMuxHandler>>§cef_object: *mut RcImpl<_cef_life_span_handler_t, Self>Implementations§
Source§impl AgentMuxLifeSpanHandler
impl AgentMuxLifeSpanHandler
pub fn new(inner: Arc<Mutex<AgentMuxHandler>>) -> LifeSpanHandler
Trait Implementations§
Source§impl Clone for AgentMuxLifeSpanHandler
impl Clone for AgentMuxLifeSpanHandler
Source§impl ImplLifeSpanHandler for AgentMuxLifeSpanHandler
impl ImplLifeSpanHandler for AgentMuxLifeSpanHandler
Source§fn on_after_created(&self, browser: Option<&mut Browser>)
fn on_after_created(&self, browser: Option<&mut Browser>)
See [
_cef_life_span_handler_t::on_after_created] for more documentation.Source§fn do_close(&self, browser: Option<&mut Browser>) -> i32
fn do_close(&self, browser: Option<&mut Browser>) -> i32
See [
_cef_life_span_handler_t::do_close] for more documentation.Source§fn on_before_close(&self, browser: Option<&mut Browser>)
fn on_before_close(&self, browser: Option<&mut Browser>)
See [
_cef_life_span_handler_t::on_before_close] for more documentation.Source§fn on_before_popup(
&self,
browser: Option<&mut Browser>,
frame: Option<&mut Frame>,
_popup_id: c_int,
target_url: Option<&CefString>,
_target_frame_name: Option<&CefString>,
target_disposition: WindowOpenDisposition,
_user_gesture: c_int,
_popup_features: Option<&PopupFeatures>,
_window_info: Option<&mut WindowInfo>,
_client: Option<&mut Option<Client>>,
_settings: Option<&mut BrowserSettings>,
_extra_info: Option<&mut Option<DictionaryValue>>,
_no_javascript_access: Option<&mut c_int>,
) -> c_int
fn on_before_popup( &self, browser: Option<&mut Browser>, frame: Option<&mut Frame>, _popup_id: c_int, target_url: Option<&CefString>, _target_frame_name: Option<&CefString>, target_disposition: WindowOpenDisposition, _user_gesture: c_int, _popup_features: Option<&PopupFeatures>, _window_info: Option<&mut WindowInfo>, _client: Option<&mut Option<Client>>, _settings: Option<&mut BrowserSettings>, _extra_info: Option<&mut Option<DictionaryValue>>, _no_javascript_access: Option<&mut c_int>, ) -> c_int
See [
_cef_life_span_handler_t::on_before_popup] for more documentation.fn get_raw(&self) -> *mut _cef_life_span_handler_t
§fn on_before_popup_aborted(&self, browser: Option<&mut Browser>, popup_id: i32)
fn on_before_popup_aborted(&self, browser: Option<&mut Browser>, popup_id: i32)
See [
_cef_life_span_handler_t::on_before_popup_aborted] for more documentation.§fn on_before_dev_tools_popup(
&self,
browser: Option<&mut Browser>,
window_info: Option<&mut WindowInfo>,
client: Option<&mut Option<Client>>,
settings: Option<&mut BrowserSettings>,
extra_info: Option<&mut Option<DictionaryValue>>,
use_default_window: Option<&mut i32>,
)
fn on_before_dev_tools_popup( &self, browser: Option<&mut Browser>, window_info: Option<&mut WindowInfo>, client: Option<&mut Option<Client>>, settings: Option<&mut BrowserSettings>, extra_info: Option<&mut Option<DictionaryValue>>, use_default_window: Option<&mut i32>, )
See [
_cef_life_span_handler_t::on_before_dev_tools_popup] for more documentation.fn init_methods(object: &mut _cef_life_span_handler_t)
Source§impl Rc for AgentMuxLifeSpanHandler
impl Rc for AgentMuxLifeSpanHandler
§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 more§fn has_one_ref(&self) -> bool
fn has_one_ref(&self) -> bool
True if the reference count is exactly 1.§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 AgentMuxLifeSpanHandler
impl !RefUnwindSafe for AgentMuxLifeSpanHandler
impl !Send for AgentMuxLifeSpanHandler
impl !Sync for AgentMuxLifeSpanHandler
impl Unpin for AgentMuxLifeSpanHandler
impl !UnwindSafe for AgentMuxLifeSpanHandler
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, U> ConvertReturnValue<U> for Twhere
T: Into<U>,
impl<T, U> ConvertReturnValue<U> for Twhere
T: Into<U>,
fn wrap_result(self) -> U
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.