#[repr(transparent)]pub struct NSAlertStyle(pub NSUInteger);NSAlert only.Expand description
The alert styles used by the alertStyle property on instances of NSAlert.
See also Apple’s documentation
Tuple Fields§
§0: NSUIntegerImplementations§
Source§impl NSAlertStyle
impl NSAlertStyle
Sourcepub const Warning: Self
pub const Warning: Self
An alert style to be used to warn the user about a current or impending event.
This style should be used when the alert’s content is more severe than NSAlertStyleInformational but less than NSAlertStyleCritical.
This is the default alert style.
Sourcepub const Informational: Self
pub const Informational: Self
An alert style to be used to inform the user about a current or impending event.
- Note: Currently, there is no visual difference between informational and warning alerts.
Sourcepub const Critical: Self
pub const Critical: Self
An alert style to be used to inform the user about a critical event. Causes the alert’s icon to be badged with a caution icon. The critical (or “caution”) style should be used sparingly. Using it too frequently diminishes its significance. Use the symbol only when extra attention is really needed, as when confirming an action that might result in unexpected loss of data. Don’t use the symbol for tasks whose only purpose is to overwrite or remove data, such as a save or empty trash.
Trait Implementations§
Source§impl Clone for NSAlertStyle
impl Clone for NSAlertStyle
Source§fn clone(&self) -> NSAlertStyle
fn clone(&self) -> NSAlertStyle
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NSAlertStyle
impl Debug for NSAlertStyle
Source§impl Encode for NSAlertStyle
impl Encode for NSAlertStyle
Source§impl Hash for NSAlertStyle
impl Hash for NSAlertStyle
Source§impl Ord for NSAlertStyle
impl Ord for NSAlertStyle
Source§fn cmp(&self, other: &NSAlertStyle) -> Ordering
fn cmp(&self, other: &NSAlertStyle) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for NSAlertStyle
impl PartialEq for NSAlertStyle
Source§fn eq(&self, other: &NSAlertStyle) -> bool
fn eq(&self, other: &NSAlertStyle) -> bool
self and other values to be equal, and is used by ==.