pub enum Out {
Show 17 variants
Hello(Hello),
View {
dock: Option<Panel>,
panel: Option<Panel>,
images: Vec<ImageRef>,
fullscreen: bool,
},
Effect(Effect),
Wants(Wants),
Frame {
slot: u32,
key: u64,
width: u32,
height: u32,
pts_us: u64,
},
Emit {
name: String,
payload: Value,
},
EmitRequest {
id: u64,
name: String,
payload: Value,
timeout_ms: u32,
all: bool,
},
Respond {
seq: u64,
value: Value,
},
Request {
id: u64,
call: Call,
},
Reply {
seq: u64,
result: Handled,
},
StateSave(Vec<u8>),
Subscribe(Listener),
Unsubscribe(String),
Log {
level: LogLevel,
text: String,
},
Wake,
Menu {
x: i32,
y: i32,
entries: Vec<MenuEntry>,
},
Hosted(Vec<HostedView>),
}Expand description
Plugin to host.
Variants§
Hello(Hello)
View
The view changed (latest wins).
Effect(Effect)
Wants(Wants)
Which keys the mode takes now (latest wins). Without one, Mouser
guesses from the view: a focused Field or an open Popup takes
every key. Once sent, only this decides.
Frame
A video frame already in shm slot; the host answers frame.presented.
Emit
EmitRequest
Respond
Answer an EmitRequest delivered to a responder listener.
Request
Reply
For sync listeners.
StateSave(Vec<u8>)
Subscribe(Listener)
Unsubscribe(String)
Log
Wake
Menu
The context menu for the menu.open event at (x, y) (window
pixels; the host places and draws it). Empty entries: no menu.
Added in mode-api 1.4 (api 1, additive; last, so older variants keep
their encoding).
Hosted(Vec<HostedView>)
The views and players Mouser runs for the mode (latest wins; empty
removes them), drawn over the mode’s dock or panel
(crate::hosted). Only when Accepted::features offers them: an
older host can’t read it. Added in mode-api 0.4 (api 1, additive;
last, so older variants keep their encoding).