pub enum ToWaOS {
Run {
id: ProgramId,
component: Vec<u8>,
},
Open {
id: ProgramId,
files: Vec<PathBuf>,
},
Screenshot {
id: ProgramId,
},
Input {
id: ProgramId,
window: u32,
input: Input,
},
}Expand description
What cargo waos says to a WaOS.
Variants§
Run
Run this component as the program id names, from its [package.metadata.waos], with
that program’s settings and folders, installed or not; the program running under that
id is stopped first.
Open
Open these files, absolute paths on this machine, with the program id names, as its
user would open them with it: the program running under that id, or the installed one,
started. Answered Opened or Refused, after which the connection ends.
Screenshot
The last picture of each window of the program id names, while a run of cargo waos run runs it. Answered Screenshots, or Unreached, after which the connection ends.
Input
input to the program id names, as its user would give it, in its window numbered
window, from 1 in the order Screenshots lists them, while a run of cargo waos run runs
it. Answered InputDone once the window shows its next picture, or Unreached, after
which the connection ends.
Trait Implementations§
Source§impl Debug for ToWaOS
A component is megabytes, and typed text may be a password: an event that prints the message
says how many bytes and characters, not which.
impl Debug for ToWaOS
A component is megabytes, and typed text may be a password: an event that prints the message says how many bytes and characters, not which.