pub enum SwayEventKind {
Workspace,
Output,
Mode,
Window,
BarconfigUpdate,
Binding,
Shutdown,
Tick,
BarStateUpdate,
Input,
}Expand description
A kind of event Sway sends, for Sway::on_event. sway-ipc(7) says
what each one’s data holds.
Variants§
Workspace
A workspace was made, emptied, focused, moved, renamed or marked urgent.
Output
An output was added, removed or changed.
Mode
The binding mode changed, as to resize.
Window
A window opened, closed or moved, or its focus, title or state changed.
BarconfigUpdate
A bar’s config changed.
Binding
A key or mouse binding ran.
Shutdown
Sway is exiting.
Tick
A program sent a tick; also sent once right after subscribing.
BarStateUpdate
A bar was shown or hidden by its modifier.
Input
An input device was added, removed or changed.
Trait Implementations§
Source§impl Clone for SwayEventKind
impl Clone for SwayEventKind
impl Copy for SwayEventKind
Source§impl Debug for SwayEventKind
impl Debug for SwayEventKind
impl Eq for SwayEventKind
Source§impl PartialEq for SwayEventKind
impl PartialEq for SwayEventKind
impl StructuralPartialEq for SwayEventKind
Auto Trait Implementations§
impl Forget for SwayEventKind
impl Freeze for SwayEventKind
impl Move for SwayEventKind
impl RefUnwindSafe for SwayEventKind
impl Send for SwayEventKind
impl Sync for SwayEventKind
impl Unpin for SwayEventKind
impl UnsafeUnpin for SwayEventKind
impl UnwindSafe for SwayEventKind
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