pub enum DeeplinkCommand {
Show,
OpenSettings,
OpenAbout,
CheckForUpdates,
Quit,
}Expand description
A GUI action the agent’s tray (or any external caller) requests by opening
an openlogi://<name> URL. macOS delivers it to the running GUI via an
Apple Event; the GUI parses it back into this enum and dispatches.
The agent builds URLs with DeeplinkCommand::to_url; the GUI reads them
with DeeplinkCommand::parse_url. The command names are defined once, in
DeeplinkCommand::as_name, so the two sides cannot disagree.
Variants§
Show
Show / foreground the main window.
OpenSettings
Open the Settings window.
OpenAbout
Open the About window.
CheckForUpdates
Run a manual update check (and show where its status is rendered).
Quit
Quit the GUI.
Implementations§
Trait Implementations§
Source§impl Clone for DeeplinkCommand
impl Clone for DeeplinkCommand
Source§fn clone(&self) -> DeeplinkCommand
fn clone(&self) -> DeeplinkCommand
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 DeeplinkCommand
Source§impl Debug for DeeplinkCommand
impl Debug for DeeplinkCommand
impl Eq for DeeplinkCommand
Source§impl PartialEq for DeeplinkCommand
impl PartialEq for DeeplinkCommand
Source§fn eq(&self, other: &DeeplinkCommand) -> bool
fn eq(&self, other: &DeeplinkCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeeplinkCommand
Auto Trait Implementations§
impl Freeze for DeeplinkCommand
impl RefUnwindSafe for DeeplinkCommand
impl Send for DeeplinkCommand
impl Sync for DeeplinkCommand
impl Unpin for DeeplinkCommand
impl UnsafeUnpin for DeeplinkCommand
impl UnwindSafe for DeeplinkCommand
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.