struct AgentMuxTray {
tx: Sender<TrayAction>,
running: bool,
nstate: NotifyTrayState,
start_at_login: Option<bool>,
}Fields§
§tx: Sender<TrayAction>§running: bool§nstate: NotifyTrayState§start_at_login: Option<bool>app:startatlogin, refreshed with the notification state.
Trait Implementations§
Source§impl Tray for AgentMuxTray
impl Tray for AgentMuxTray
Source§fn activate(&mut self, _x: i32, _y: i32)
fn activate(&mut self, _x: i32, _y: i32)
Left-click: the oldest thing that needs you, else a new window.
Source§fn id(&self) -> String
fn id(&self) -> String
It’s a name that should be unique for this application and consistent
between sessions, such as the application name itself. Read more
Source§fn title(&self) -> String
fn title(&self) -> String
It’s a name that describes the application, it can be more descriptive
than Id.
Source§fn icon_name(&self) -> String
fn icon_name(&self) -> String
The item only support the context menu, the visualization
should prefer showing the menu or sending ContextMenu()
instead of Activate()
The StatusNotifierItem can carry an icon that can be used by the
visualization to identify the item.
Source§fn icon_pixmap(&self) -> Vec<Icon>
fn icon_pixmap(&self) -> Vec<Icon>
Carries an ARGB32 binary representation of the icon
Source§fn status(&self) -> Status
fn status(&self) -> Status
Describes the status of this item or of the associated application.
Source§fn tool_tip(&self) -> ToolTip
fn tool_tip(&self) -> ToolTip
Data structure that describes extra information associated to this item,
that can be visualized for instance by a tooltip (or by any other mean
the visualization consider appropriate.
The menu you want to display Read more
§const MENU_ON_ACTIVATE: bool = false
const MENU_ON_ACTIVATE: bool = false
Replaces the default activate behavior with opening the menu Read more
§fn secondary_activate(&mut self, _x: i32, _y: i32)
fn secondary_activate(&mut self, _x: i32, _y: i32)
Is to be considered a secondary and less important form of activation
compared to Activate.
This is typically a consequence of user input, such as mouse middle
click over the graphical representation of the item.
The application will perform any task is considered appropriate as an
activation request. Read more
§fn scroll(&mut self, _delta: i32, _orientation: Orientation)
fn scroll(&mut self, _delta: i32, _orientation: Orientation)
The user asked for a scroll action. This is caused from input such as
mouse wheel over the graphical representation of the item. Read more
§fn window_id(&self) -> i32
fn window_id(&self) -> i32
It’s the windowing-system dependent identifier for a window, the
application can chose one of its windows to be available through this
property or just set 0 if it’s not interested.
§fn icon_theme_path(&self) -> String
fn icon_theme_path(&self) -> String
An additional path to add to the theme search path to find the icons.
§fn overlay_icon_name(&self) -> String
fn overlay_icon_name(&self) -> String
The Freedesktop-compliant name of an icon. This can be used by the
visualization to indicate extra state information, for instance as an
overlay for the main icon.
§fn overlay_icon_pixmap(&self) -> Vec<Icon>
fn overlay_icon_pixmap(&self) -> Vec<Icon>
ARGB32 binary representation of the overlay icon described in the
previous paragraph.
§fn attention_icon_name(&self) -> String
fn attention_icon_name(&self) -> String
The Freedesktop-compliant name of an icon. this can be used by the
visualization to indicate that the item is in RequestingAttention state.
§fn attention_icon_pixmap(&self) -> Vec<Icon>
fn attention_icon_pixmap(&self) -> Vec<Icon>
ARGB32 binary representation of the requesting attention icon describe in
the previous paragraph.
§fn attention_movie_name(&self) -> String
fn attention_movie_name(&self) -> String
An item can also specify an animation associated to the
RequestingAttention state.
This should be either a Freedesktop-compliant icon name or a full path.
The visualization can chose between the movie or AttentionIconPixmap (or
using neither of those) at its discretion.
§fn text_direction(&self) -> TextDirection
fn text_direction(&self) -> TextDirection
Represents the way the text direction of the application. This
allows the server to handle mismatches intelligently.
The root menu is about to show Read more
§fn watcher_online(&self)
fn watcher_online(&self)
The
org.kde.StatusNotifierWatcher is back to online Read more§fn watcher_offline(&self, reason: OfflineReason) -> bool
fn watcher_offline(&self, reason: OfflineReason) -> bool
The
org.kde.StatusNotifierWatcher is offline Read moreAuto Trait Implementations§
impl Freeze for AgentMuxTray
impl RefUnwindSafe for AgentMuxTray
impl Send for AgentMuxTray
impl Sync for AgentMuxTray
impl Unpin for AgentMuxTray
impl UnsafeUnpin for AgentMuxTray
impl UnwindSafe for AgentMuxTray
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
§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>
Convert
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>
Convert
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)
Convert
&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)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> TrayMethods for Twhere
T: Tray,
impl<T> TrayMethods for Twhere
T: Tray,
§fn disable_dbus_name(self, disable: bool) -> TrayServiceBuilder<Self>
fn disable_dbus_name(self, disable: bool) -> TrayServiceBuilder<Self>
Disable owning a D-Bus well-known name (
StatusNotifierItem-PID-ID) for the tray service Read more§fn assume_sni_available(
self,
assume_available: bool,
) -> TrayServiceBuilder<Self>
fn assume_sni_available( self, assume_available: bool, ) -> TrayServiceBuilder<Self>
Assume the system has a working StatusNotifierItem implementation Read more
§impl<T> TrayMethods for Twhere
T: Tray,
impl<T> TrayMethods for Twhere
T: Tray,
§fn disable_dbus_name(self, disable: bool) -> TrayServiceBuilder<Self>
fn disable_dbus_name(self, disable: bool) -> TrayServiceBuilder<Self>
Disable owning a D-Bus well-known name (
StatusNotifierItem-PID-ID) for the tray service Read more§fn assume_sni_available(
self,
assume_available: bool,
) -> TrayServiceBuilder<Self>
fn assume_sni_available( self, assume_available: bool, ) -> TrayServiceBuilder<Self>
Assume the system has a working StatusNotifierItem implementation Read more