pub enum FromWaOS {
Started,
Output {
stream: OutputStream,
bytes: Vec<u8>,
},
Ended(RunEnd),
Refused(String),
Opened,
Screenshots(Vec<WindowPicture>),
InputDone {
new_picture: bool,
},
Unreached(Unreached),
}Expand description
What a WaOS says back, about the run, the opening, the screenshot or the input the connection asked for.
Variants§
Started
Output
Bytes the program wrote, as it wrote them: a terminal shows them as they come.
Ended(RunEnd)
Refused(String)
It could not be loaded or run, or the files could not be opened with it, and why.
Opened
The files were handed to the program, which hears them once it listens.
Screenshots(Vec<WindowPicture>)
The last picture of each of the program’s windows, in the order they opened.
InputDone
The program heard the input. new_picture says whether the window then showed a picture
the program drew after it, within the time WaOS waits for one: none comes for an input
that changed nothing, nor while the window is out of sight.
Unreached(Unreached)
The screenshot or the input reached no window, and why.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FromWaOS
impl<'de> Deserialize<'de> for FromWaOS
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FromWaOS
impl StructuralPartialEq for FromWaOS
Auto Trait Implementations§
impl Forget for FromWaOS
impl Freeze for FromWaOS
impl Move for FromWaOS
impl RefUnwindSafe for FromWaOS
impl Send for FromWaOS
impl Sync for FromWaOS
impl Unpin for FromWaOS
impl UnsafeUnpin for FromWaOS
impl UnwindSafe for FromWaOS
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.