pub enum UserAttentionKind {
Critical,
Informational,
}Expand description
Intensity level for a user-attention request.
Mirrors winit’s UserAttentionType so platforms that distinguish a
critical (red bouncing dock icon on macOS) vs informational
(one-bounce / taskbar flash) request can honour it.
Variants§
Critical
Persistent until the window is focused — macOS red bouncing dock, Windows flashing taskbar entry.
Informational
One-shot — macOS single bounce, Windows brief taskbar highlight.
Trait Implementations§
Source§impl Clone for UserAttentionKind
impl Clone for UserAttentionKind
Source§fn clone(&self) -> UserAttentionKind
fn clone(&self) -> UserAttentionKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UserAttentionKind
Source§impl Debug for UserAttentionKind
impl Debug for UserAttentionKind
impl Eq for UserAttentionKind
Source§impl PartialEq for UserAttentionKind
impl PartialEq for UserAttentionKind
impl StructuralPartialEq for UserAttentionKind
Auto Trait Implementations§
impl Freeze for UserAttentionKind
impl RefUnwindSafe for UserAttentionKind
impl Send for UserAttentionKind
impl Sync for UserAttentionKind
impl Unpin for UserAttentionKind
impl UnsafeUnpin for UserAttentionKind
impl UnwindSafe for UserAttentionKind
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