pub enum TrayAction {
OpenWindow,
Quit,
ToggleStartAtLogin,
}Expand description
What the user picked from the tray menu. Platform backends translate their native click/menu events into these; everything downstream is platform-neutral, so the handling logic is written and tested once.
Variants§
OpenWindow
“New Window” (or “Start AgentMux” when the service is down) — also a
left-click / double-click on the icon itself.
Reuses the existing open_new_window forward rather than introducing a
second way to make a window (see §7.5.1: the reopen path already exists
and is what the macOS reopen delegate uses).
Quit
“Quit AgentMux” — a genuine, user-intended full shutdown, distinct from closing the last window while background-service mode is on.
ToggleStartAtLogin
The “Start at login” check item: flips app:startatlogin
(crate::start_at_login). Handled in the launcher, not the host.
Implementations§
Trait Implementations§
Source§impl Clone for TrayAction
impl Clone for TrayAction
Source§fn clone(&self) -> TrayAction
fn clone(&self) -> TrayAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TrayAction
Source§impl Debug for TrayAction
impl Debug for TrayAction
impl Eq for TrayAction
Source§impl PartialEq for TrayAction
impl PartialEq for TrayAction
impl StructuralPartialEq for TrayAction
Auto Trait Implementations§
impl Freeze for TrayAction
impl RefUnwindSafe for TrayAction
impl Send for TrayAction
impl Sync for TrayAction
impl Unpin for TrayAction
impl UnsafeUnpin for TrayAction
impl UnwindSafe for TrayAction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.