#[non_exhaustive]pub enum AnyResponse {
Show 17 variants
Hello(Welcome),
Snapshot(SnapshotReply),
Input(Delivered),
Screenshot(ScreenshotHeader),
Windows(WindowList),
Focus(Done),
Drive(Done),
Release(Done),
Inspect(Done),
Record(Done),
HoldTask(WireRuleId),
RemoveRule(Done),
NextTask(WireTaskId),
ReleaseTask(Done),
ResolveTask(Done),
WaitIdle(Done),
Bye(Done),
}Expand description
The response to any request, named by the request it answers. Serialises as the response itself.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Hello(Welcome)
The handshake.
Snapshot(SnapshotReply)
The raw tree.
Input(Delivered)
Input events.
Screenshot(ScreenshotHeader)
A window’s pixels.
Windows(WindowList)
The open windows.
Focus(Done)
Focus a window.
Drive(Done)
Take a window’s input.
Release(Done)
Give a window’s input back.
Inspect(Done)
Pick mode.
Record(Done)
Recording.
HoldTask(WireRuleId)
Hold tasks of a name.
RemoveRule(Done)
Remove a rule.
NextTask(WireTaskId)
The next task of a name.
ReleaseTask(Done)
Let a task run.
ResolveTask(Done)
Complete a task.
WaitIdle(Done)
Wait until the app is idle.
Bye(Done)
End the session.
Implementations§
Trait Implementations§
Source§impl Clone for AnyResponse
impl Clone for AnyResponse
Source§impl Debug for AnyResponse
impl Debug for AnyResponse
Source§impl PartialEq for AnyResponse
impl PartialEq for AnyResponse
Source§impl Serialize for AnyResponse
impl Serialize for AnyResponse
impl StructuralPartialEq for AnyResponse
Auto Trait Implementations§
impl Forget for AnyResponse
impl Freeze for AnyResponsewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<RawWindowInfo>: Freeze,
PhantomData<RawWindow>: Freeze,
PhantomData<WireStatus>: Freeze,
PhantomData<CursorReading>: Freeze,
impl Move for AnyResponse
impl RefUnwindSafe for AnyResponsewhere
String: RefUnwindSafe,
impl Send for AnyResponse
impl Sync for AnyResponse
impl Unpin for AnyResponse
impl UnsafeUnpin for AnyResponsewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<RawWindowInfo>: UnsafeUnpin,
PhantomData<RawWindow>: UnsafeUnpin,
PhantomData<WireStatus>: UnsafeUnpin,
PhantomData<CursorReading>: UnsafeUnpin,
impl UnwindSafe for AnyResponse
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