struct AppStateCloseOps<'a>(&'a Arc<AppState>);Expand description
Production implementation of BrowserPaneCloseOps backed by AppState.browsers
and Win32 DestroyWindow.
Tuple Fields§
§0: &'a Arc<AppState>Trait Implementations§
Source§impl<'a> BrowserPaneCloseOps for AppStateCloseOps<'a>
impl<'a> BrowserPaneCloseOps for AppStateCloseOps<'a>
Source§fn take_browser_hwnd(&self, label: &str) -> Option<usize>
fn take_browser_hwnd(&self, label: &str) -> Option<usize>
Remove the Browser for this label from the registry. Return its
outer HWND as a pointer-sized value, or
None if there is no
Browser or no HWND. Dropping the Browser Arc is the implementation’s
responsibility — production drops before returning so Chromium’s
refcount isn’t held by our scope.Source§fn destroy_hwnd(&self, hwnd: usize)
fn destroy_hwnd(&self, hwnd: usize)
Destroy the given HWND. Production calls Win32
DestroyWindow.
Called only with values returned from take_browser_hwnd.Auto Trait Implementations§
impl<'a> Freeze for AppStateCloseOps<'a>
impl<'a> !RefUnwindSafe for AppStateCloseOps<'a>
impl<'a> Send for AppStateCloseOps<'a>
impl<'a> Sync for AppStateCloseOps<'a>
impl<'a> Unpin for AppStateCloseOps<'a>
impl<'a> !UnwindSafe for AppStateCloseOps<'a>
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
§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.