#[repr(i64)]pub enum NSApplicationActivationPolicy {
Regular = 0,
Accessory = 1,
Prohibited = 2,
}Expand description
Activation policies (used by activationPolicy) that control whether and how an app may be activated.
Variants§
Regular = 0
The application is an ordinary app that appears in the Dock and may have a user interface.
Accessory = 1
The application doesn’t appear in the Dock and doesn’t have a menu bar, but it may be activated programmatically or by clicking on one of its windows.
Prohibited = 2
The application doesn’t appear in the Dock and may not create windows or be activated.
Trait Implementations§
Source§impl Clone for NSApplicationActivationPolicy
impl Clone for NSApplicationActivationPolicy
Source§fn clone(&self) -> NSApplicationActivationPolicy
fn clone(&self) -> NSApplicationActivationPolicy
Returns a duplicate 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 PartialEq for NSApplicationActivationPolicy
impl PartialEq for NSApplicationActivationPolicy
Source§fn eq(&self, other: &NSApplicationActivationPolicy) -> bool
fn eq(&self, other: &NSApplicationActivationPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for NSApplicationActivationPolicy
impl Eq for NSApplicationActivationPolicy
impl StructuralPartialEq for NSApplicationActivationPolicy
Auto Trait Implementations§
impl Freeze for NSApplicationActivationPolicy
impl RefUnwindSafe for NSApplicationActivationPolicy
impl Send for NSApplicationActivationPolicy
impl Sync for NSApplicationActivationPolicy
impl Unpin for NSApplicationActivationPolicy
impl UnwindSafe for NSApplicationActivationPolicy
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