pub enum UserAttention {
Critical,
Informational,
}
Expand description
The type of user attention to request.
§Platform-specific
- X11: Sets the WM’s
XUrgencyHint
. No distinction betweenCritical
andInformational
.
Variants§
Critical
§Platform-specific
- macOS: Bounces the dock icon until the application is in focus.
- Windows: Flashes both the window and the taskbar button until the application is in focus.
Informational
§Platform-specific
- macOS: Bounces the dock icon once.
- Windows: Flashes the taskbar button until the application is in focus.
Trait Implementations§
Source§impl Clone for UserAttention
impl Clone for UserAttention
Source§fn clone(&self) -> UserAttention
fn clone(&self) -> UserAttention
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UserAttention
impl Debug for UserAttention
impl Copy for UserAttention
Auto Trait Implementations§
impl Freeze for UserAttention
impl RefUnwindSafe for UserAttention
impl Send for UserAttention
impl Sync for UserAttention
impl Unpin for UserAttention
impl UnwindSafe for UserAttention
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