pub struct IdleTransition {
pub kind: IdleTransitionKind,
pub window: String,
pub elapsed: Duration,
}Expand description
Delivered to the callback set with crate::ShellBuilder::webview_idle_on_transition, once per
transition, after the platform calls succeeded.
Fields§
§kind: IdleTransitionKind§window: StringLabel of the webview window.
elapsed: DurationSuspended: how long the window had been hidden. Resumed: how long the webview was
suspended. (For Suspended on Windows the TrySuspend request was accepted; its later
completion error still goes to the error callback.)
Trait Implementations§
Source§impl Clone for IdleTransition
impl Clone for IdleTransition
Source§impl Debug for IdleTransition
impl Debug for IdleTransition
impl Eq for IdleTransition
Source§impl PartialEq for IdleTransition
impl PartialEq for IdleTransition
Source§impl Serialize for IdleTransition
impl Serialize for IdleTransition
impl StructuralPartialEq for IdleTransition
Auto Trait Implementations§
impl Freeze for IdleTransition
impl RefUnwindSafe for IdleTransition
impl Send for IdleTransition
impl Sync for IdleTransition
impl Unpin for IdleTransition
impl UnsafeUnpin for IdleTransition
impl UnwindSafe for IdleTransition
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.