#[repr(C)]pub enum TrayStatus {
Passive = 0,
Active = 1,
NeedsAttention = 2,
}Expand description
Attention state. Maps to SNI’s Status.
On Windows and macOS only Passive is meaningful (it hides the icon);
Active and NeedsAttention both simply show it, because neither platform
has a “demanding attention” tray state.
Variants§
Passive = 0
The host MAY hide the item.
Active = 1
NeedsAttention = 2
Draws attention; SNI hosts swap in AttentionIcon.
Implementations§
Trait Implementations§
Source§impl Clone for TrayStatus
impl Clone for TrayStatus
Source§fn clone(&self) -> TrayStatus
fn clone(&self) -> TrayStatus
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 TrayStatus
Source§impl Debug for TrayStatus
impl Debug for TrayStatus
Source§impl Default for TrayStatus
impl Default for TrayStatus
Source§fn default() -> TrayStatus
fn default() -> TrayStatus
Returns the “default value” for a type. Read more
impl Eq for TrayStatus
Source§impl Hash for TrayStatus
impl Hash for TrayStatus
Source§impl Ord for TrayStatus
impl Ord for TrayStatus
Source§fn cmp(&self, other: &TrayStatus) -> Ordering
fn cmp(&self, other: &TrayStatus) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TrayStatus
impl PartialEq for TrayStatus
Source§impl PartialOrd for TrayStatus
impl PartialOrd for TrayStatus
impl StructuralPartialEq for TrayStatus
Auto Trait Implementations§
impl Freeze for TrayStatus
impl RefUnwindSafe for TrayStatus
impl Send for TrayStatus
impl Sync for TrayStatus
impl Unpin for TrayStatus
impl UnsafeUnpin for TrayStatus
impl UnwindSafe for TrayStatus
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