pub enum UserAttentionType {
Critical,
Informational,
Reset,
}
Expand description
Types of attention to request from a user when a native window is not in focus.
See winit’s documentation for platform-specific meaning of the attention types.
Variants§
Critical
Request an elevated amount of animations and flair for the window and the task bar or dock icon.
Informational
Request a standard amount of attention-grabbing actions.
Reset
Reset the attention request and interrupt related animations and flashes.
Trait Implementations§
source§impl Clone for UserAttentionType
impl Clone for UserAttentionType
source§fn clone(&self) -> UserAttentionType
fn clone(&self) -> UserAttentionType
Returns a copy of the value. Read more
1.6.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 UserAttentionType
impl Debug for UserAttentionType
source§impl<'de> Deserialize<'de> for UserAttentionType
impl<'de> Deserialize<'de> for UserAttentionType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for UserAttentionType
impl PartialEq for UserAttentionType
source§impl Serialize for UserAttentionType
impl Serialize for UserAttentionType
impl Copy for UserAttentionType
impl Eq for UserAttentionType
impl StructuralPartialEq for UserAttentionType
Auto Trait Implementations§
impl Freeze for UserAttentionType
impl RefUnwindSafe for UserAttentionType
impl Send for UserAttentionType
impl Sync for UserAttentionType
impl Unpin for UserAttentionType
impl UnwindSafe for UserAttentionType
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more