pub struct SwayEvent {
pub kind: SwayEventKind,
pub data: String,
}Expand description
One event from Sway, as Quickshell’s I3Event, for
Sway::on_event.
Fields§
§kind: SwayEventKindWhich kind it is.
data: StringIts JSON as Sway sent it, an object sway-ipc(7) describes for each
kind: a mode event’s has change, the mode’s name, and
pango_markup.
Trait Implementations§
impl Eq for SwayEvent
impl StructuralPartialEq for SwayEvent
Auto Trait Implementations§
impl Forget for SwayEvent
impl Freeze for SwayEvent
impl Move for SwayEvent
impl RefUnwindSafe for SwayEvent
impl Send for SwayEvent
impl Sync for SwayEvent
impl Unpin for SwayEvent
impl UnsafeUnpin for SwayEvent
impl UnwindSafe for SwayEvent
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