pub enum DaemonMessage {
Show 16 variants
Hello {
api: u32,
version: String,
},
Modules {
modules: Vec<String>,
},
Contributions {
contributions: Vec<Contribution>,
},
State {
module: String,
state: Value,
},
Live {
module: String,
value: Value,
},
Present {
activity: Option<Activity>,
resting: Option<Activity>,
output: Option<String>,
},
Bubbles {
bubbles: Vec<Bubble>,
overflow: Vec<Overflow>,
stack: Option<Stacking>,
arrangements: Vec<AreaArrangement>,
tooltip_ms: Option<u64>,
},
Theme {
theme: Box<Theme>,
},
Ok,
Output {
output: String,
},
Status {
status: Status,
},
Actions {
modules: Vec<ModuleActions>,
},
Error {
code: ErrorCode,
message: String,
},
Profiling {
on: bool,
},
Covered {
outputs: Vec<String>,
desktops: Vec<String>,
},
ReloadViews,
}Expand description
Sent by the daemon.
Variants§
Hello
Answer to the client’s hello.
Modules
The enabled modules. Sent to the UI after hello and when the list
changes.
Contributions
What modules offer each other, from every enabled module. Sent to the
UI after hello.
Fields
contributions: Vec<Contribution>State
The latest state a module published. Sent to the UI after hello for
every module, then whenever it changes.
Live
A passing value a module sends many times a second, like an audio meter’s level. The daemon doesn’t keep it or send it again.
Present
What the island shows now. None when no activity exists at all.
Fields
Bubbles
Every bubble, in drawing order. Sent to the UI after hello and on
every change.
Fields
arrangements: Vec<AreaArrangement>The areas that merge or stack their bubbles; the others lay them apart.
Theme
Design tokens. Sent to the UI after hello and on reload.
Ok
A request succeeded.
Output
A command succeeded with something to say: a choice the user made,
for example. mochi ipc prints it.
Status
Answer to status.
Actions
Answer to list_actions.
Fields
modules: Vec<ModuleActions>Error
A request failed, or a message could not be handled.
Profiling
Whether the daemon profiles now: while it does, the UI counts the
frames each window draws and sends frames every second. Sent to
the UI after hello and whenever it changes. UI only.
Covered
The outputs a fullscreen window covers, by name: their island and
desktop can’t be seen, so views there stop moving. Sent to the UI
after hello and whenever it changes. UI only.
Fields
ReloadViews
Reload the views in place, keeping the windows: the shell directory has a module it didn’t have. The UI says hello again once it has. UI only.
Trait Implementations§
Source§impl Clone for DaemonMessage
impl Clone for DaemonMessage
Source§fn clone(&self) -> DaemonMessage
fn clone(&self) -> DaemonMessage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more