#[non_exhaustive]pub enum Event {
Workspace(Box<WorkspaceEvent>),
Output(OutputEvent),
Mode(ModeEvent),
Window(Box<WindowEvent>),
BarConfigUpdate(Box<BarConfig>),
Binding(BindingEvent),
Shutdown(ShutdownEvent),
Tick(TickEvent),
BarStateUpdate(BarStateUpdateEvent),
Input(Box<InputEvent>),
}
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>)
Sent whenever an event involving a workspace occurs such as initialization of a new workspace or a different workspace gains focus.
Output(OutputEvent)
Sent whenever an output is added, removed, or its configuration is changed.
Mode(ModeEvent)
Sent whenever the binding mode changes.
Window(Box<WindowEvent>)
Sent whenever an event involving a view occurs such as being reparented, focused, or closed.
BarConfigUpdate(Box<BarConfig>)
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>)
Sent when something related to input devices changes.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
source§fn 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
source§impl Serialize for Event
impl Serialize for Event
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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§
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