pub enum ClientMessage {
Show 13 variants
Hello {
api: u32,
role: Role,
},
Command {
module: String,
action: String,
args: Vec<String>,
},
Event {
activity: ActivityId,
kind: EventKind,
output: Option<String>,
click: Option<Click>,
},
PassOn {
click: Click,
},
BubbleClick {
bubble: BubbleId,
},
OverflowClick {
area: Area,
},
Status,
Reload,
Dismiss,
ListActions {
module: Option<String>,
},
StepAside {
pid: u32,
},
Profile {
seconds: u32,
},
Frames {
output: String,
surface: String,
frames: u32,
},
}Expand description
Sent to the daemon.
Variants§
Hello
Must be the first message on every connection.
Command
Runs a module action. Answered with ok or error.
Event
Something happened to the island. UI only, never answered.
Fields
activity: ActivityIdPassOn
A scroll the island caught that belongs to the window under it, once the island lets go there. UI only, never answered.
BubbleClick
A click on a bubble. UI only, never answered.
OverflowClick
A click on an area’s “+N”, for the bubbles it leaves out. The daemon lists them in the island. UI only, never answered.
Status
Answered with status.
Reload
Reloads config and theme. Answered with ok or error.
Dismiss
Closes what the island shows, as a right click on it does. For a
keybind: notices that don’t take the keyboard can’t hear Escape.
Answered with ok, also when nothing shows.
ListActions
Answered with actions, for one module or all of them.
StepAside
Asks the daemon to give the session to the daemon with process
pid, as mochid --dev does: it stops its shell and its modules,
waits for that process to end, then starts again. Answered with ok
before it stops.
Profile
Records what mochid, Quickshell and the programs they start cost
for seconds, with a flame graph of mochid, and writes a report.
Answered with output, the report’s path, once it’s written.
Frames
How many frames a window of the UI drew in the last second, while
the daemon profiles: surface is island or desktop. UI only,
never answered.
Trait Implementations§
Source§impl Clone for ClientMessage
impl Clone for ClientMessage
Source§fn clone(&self) -> ClientMessage
fn clone(&self) -> ClientMessage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more