Enum swayipc_async::EventType
source · [−]#[non_exhaustive]
pub enum EventType {
Workspace,
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.
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
sourceimpl Serialize for EventType
impl Serialize for EventType
sourcefn 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
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
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