Enum swayipc_types::EventType
source · #[non_exhaustive]pub enum EventType {
Workspace,
Output,
Mode,
Window,
BarConfigUpdate,
Binding,
Shutdown,
Tick,
BarStateUpdate,
Input,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Workspace
Sent whenever an event involving a workspace occurs such as initialization of a new workspace or a different workspace gains focus.
Output
Sent whenever an output is added, removed, or its configuration is changed.
Mode
Sent whenever the binding mode changes.
Window
Sent whenever an event involving a view occurs such as being reparented, focused, or closed.
BarConfigUpdate
Sent whenever a bar config changes.
Binding
Sent when a configured binding is executed.
Shutdown
Sent when the ipc shuts down because sway is exiting.
Tick
Sent when an ipc client sends a SEND_TICK message.
BarStateUpdate
Sent when the visibility of a bar should change due to a modifier.
Input
Sent when something related to input devices changes.
Trait Implementations§
source§impl PartialEq for EventType
impl PartialEq for EventType
impl Copy for EventType
impl Eq for EventType
impl StructuralEq for EventType
impl StructuralPartialEq for EventType
Auto Trait Implementations§
impl RefUnwindSafe for EventType
impl Send for EventType
impl Sync for EventType
impl Unpin for EventType
impl UnwindSafe for EventType
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