pub enum ToPlugin {
Hello {
api: u32,
version: String,
module: String,
settings: Value,
data_dir: PathBuf,
session_dir: PathBuf,
compositor: CompositorState,
},
Command {
id: u64,
action: String,
args: Args,
},
Clicked {
activity: u64,
},
Hovered {
activity: u64,
hovered: bool,
},
Ended {
activity: u64,
reason: EndReason,
},
BubbleClicked {
bubble: u64,
},
State {
module: String,
state: Value,
},
Compositor {
state: CompositorState,
},
Offers {
offers: Vec<Contribution>,
},
CallResult {
id: u64,
error: Option<CallError>,
output: Option<String>,
},
CompositorResult {
id: u64,
value: Value,
error: Option<String>,
},
}Expand description
Sent by mochid to a plugin backend.
Variants§
Hello
The first message. The backend answers with its own hello.
Fields
compositor: CompositorStateCommand
Runs one of its actions, with arguments already checked against the
manifest. Answer with reply and the same id.
Clicked
A click on one of its activities that has no expanded view.
Hovered
The pointer came onto one of its activities on the island, or left.
Ended
One of its activities is gone for good.
BubbleClicked
A click on one of its bubbles.
State
A module named in the manifest’s [uses] state published state:
null when it stopped. Sent once at the start when it has some.
Compositor
The compositor’s state changed.
Fields
state: CompositorStateOffers
What the enabled modules offer this plugin: every contribution whose
target is its id. Sent at the start, then when a reload changes it.
Fields
offers: Vec<Contribution>CallResult
The answer to a call.
Fields
CompositorResult
The answer to a compositor request: windows returns a list of
WindowInfo, pointer_output a name or null.