#[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

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.