pub enum NativeAction {
MissionControl,
AppExpose,
PreviousDesktop,
NextDesktop,
ShowDesktop,
LaunchpadShow,
LockScreen,
Screenshot,
CaptureRegion,
Sleep,
}Expand description
A window-manager or power action with no shared cross-platform chord.
Each backend reaches it through its own dedicated OS API — or, where the OS has no equivalent at all, a debug-logged no-op.
Variants§
MissionControl
Show all windows across spaces (macOS Mission Control).
AppExpose
Show all windows of the frontmost app (macOS App Exposé).
PreviousDesktop
Switch to the previous desktop/space.
NextDesktop
Switch to the next desktop/space.
ShowDesktop
Hide all windows to reveal the desktop.
LaunchpadShow
Open the application launcher.
LockScreen
Lock the screen.
Screenshot
Capture a full-screen screenshot.
CaptureRegion
Capture a selected screen region.
Sleep
Put the computer to sleep.
Trait Implementations§
Source§impl Clone for NativeAction
impl Clone for NativeAction
Source§fn clone(&self) -> NativeAction
fn clone(&self) -> NativeAction
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 NativeAction
Source§impl Debug for NativeAction
impl Debug for NativeAction
impl Eq for NativeAction
Source§impl Hash for NativeAction
impl Hash for NativeAction
Source§impl PartialEq for NativeAction
impl PartialEq for NativeAction
impl StructuralPartialEq for NativeAction
Auto Trait Implementations§
impl Freeze for NativeAction
impl RefUnwindSafe for NativeAction
impl Send for NativeAction
impl Sync for NativeAction
impl Unpin for NativeAction
impl UnsafeUnpin for NativeAction
impl UnwindSafe for NativeAction
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.