pub enum IdleTrigger {
HiddenOrMinimised,
Minimised,
}Expand description
What starts the idle period of the main webview.
Variants§
HiddenOrMinimised
A window hide the shell or host reports (tray, close-to-tray, note_hidden), and a minimise
when IdleOptions::start_on_minimize is set. The behaviour hosts already have.
Minimised
A minimise only (whole-app: it acts on the webview of the window that was minimised). A
tray hide, close-to-tray or note_hidden does not start idle, and a minimise always does,
whatever start_on_minimize says. For an app with a single web view that only wants to stop
work while minimised: on Windows SetIsVisible(false) then TrySuspend, nothing closed;
the restore is Resume (when suspended) then SetIsVisible(true).
Trait Implementations§
Source§impl Clone for IdleTrigger
impl Clone for IdleTrigger
impl Copy for IdleTrigger
Source§impl Debug for IdleTrigger
impl Debug for IdleTrigger
Source§impl Default for IdleTrigger
impl Default for IdleTrigger
impl Eq for IdleTrigger
Source§impl PartialEq for IdleTrigger
impl PartialEq for IdleTrigger
impl StructuralPartialEq for IdleTrigger
Auto Trait Implementations§
impl Freeze for IdleTrigger
impl RefUnwindSafe for IdleTrigger
impl Send for IdleTrigger
impl Sync for IdleTrigger
impl Unpin for IdleTrigger
impl UnsafeUnpin for IdleTrigger
impl UnwindSafe for IdleTrigger
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.