Enum swayipc_async::Event
source · [−]#[non_exhaustive]
pub enum Event {
Workspace(Box<WorkspaceEvent, Global>),
Mode(ModeEvent),
Window(Box<WindowEvent, Global>),
BarConfigUpdate(Box<BarConfig, Global>),
Binding(BindingEvent),
Shutdown(ShutdownEvent),
Tick(TickEvent),
BarStateUpdate(BarStateUpdateEvent),
Input(Box<InputEvent, Global>),
}
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(Box<WorkspaceEvent, Global>)
Sent whenever an event involving a workspace occurs such as initialization of a new workspace or a different workspace gains focus.
Mode(ModeEvent)
Sent whenever the binding mode changes.
Window(Box<WindowEvent, Global>)
Sent whenever an event involving a view occurs such as being reparented, focused, or closed.
BarConfigUpdate(Box<BarConfig, Global>)
Sent whenever a bar config changes.
Binding(BindingEvent)
Sent when a configured binding is executed.
Shutdown(ShutdownEvent)
Sent when the ipc shuts down because sway is exiting.
Tick(TickEvent)
Sent when an ipc client sends a SEND_TICK message.
BarStateUpdate(BarStateUpdateEvent)
Send when the visibility of a bar should change due to a modifier.
Input(Box<InputEvent, Global>)
Sent when something related to input devices changes.
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<Event, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Event, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more