pub enum ControllerHide {
Immediate,
OnTimer,
}Expand description
When the WebView2 controller is hidden after the main window hides.
Variants§
Immediate
At once, when the window hides (the MailRight donor behaviour and the default): rendering
stops immediately, and TrySuspend later finds the controller already hidden.
OnTimer
When the idle timer fires, just before TrySuspend (WebView2 requires a hidden controller
to suspend). The webview keeps rendering for suspend_after first, so a window that is
minimised or hidden only briefly never loses its compositor surface.
Trait Implementations§
Source§impl Clone for ControllerHide
impl Clone for ControllerHide
impl Copy for ControllerHide
Source§impl Debug for ControllerHide
impl Debug for ControllerHide
Source§impl Default for ControllerHide
impl Default for ControllerHide
impl Eq for ControllerHide
Source§impl PartialEq for ControllerHide
impl PartialEq for ControllerHide
impl StructuralPartialEq for ControllerHide
Auto Trait Implementations§
impl Freeze for ControllerHide
impl RefUnwindSafe for ControllerHide
impl Send for ControllerHide
impl Sync for ControllerHide
impl Unpin for ControllerHide
impl UnsafeUnpin for ControllerHide
impl UnwindSafe for ControllerHide
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.