pub struct Method(pub u16);Expand description
A request method, u16 on the wire.
Tuple Fields§
§0: u16Implementations§
Source§impl Method
impl Method
Sourcepub const SNAPSHOT: Method
pub const SNAPSHOT: Method
Read the UI tree (SnapshotParams to Snapshot); needs tree.
Sourcepub const SCREENSHOT: Method
pub const SCREENSHOT: Method
Capture the screen (ScreenshotParams to Screenshot); needs screenshot.
Sourcepub const SWIPE: Method
pub const SWIPE: Method
Swipe (SwipeParams to InputAck); needs input.
Sourcepub const TEXT_SET: Method
pub const TEXT_SET: Method
Set text in a field (TextParams to TextAck); needs text_set.
Sourcepub const FRAMES_START: Method
pub const FRAMES_START: Method
Start frame streaming (FramesParams to an empty result); needs frames.
Sourcepub const FRAMES_STOP: Method
pub const FRAMES_STOP: Method
Stop frame streaming (no parameters, empty result); needs frames.
Sourcepub const RESYNC: Method
pub const RESYNC: Method
Resynchronize a stream (ResyncParams to ResyncAck); needs events.
Sourcepub const BOUNDS: Method
pub const BOUNDS: Method
Read nodes’ bounds again past the platform’s node cache
(BoundsParams to Probed); needs bounds.
Source§impl Method
impl Method
Sourcepub fn required_capability(self) -> Capabilities
pub fn required_capability(self) -> Capabilities
The capability an agent must advertise before the host sends this
method; empty for shutdown and for methods this version does not know.
Trait Implementations§
impl Copy for Method
impl Eq for Method
Source§impl Ord for Method
impl Ord for Method
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Method
impl PartialOrd for Method
impl StructuralPartialEq for Method
Auto Trait Implementations§
impl Freeze for Method
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnsafeUnpin for Method
impl UnwindSafe for Method
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