pub struct KeyboardPressBuilder<'a> { /* private fields */ }Expand description
Builder for keyboard press operations with configurable options.
Created via Keyboard::press.
Implementations§
Source§impl<'a> KeyboardPressBuilder<'a>
impl<'a> KeyboardPressBuilder<'a>
Sourcepub fn no_wait_after(self, no_wait_after: bool) -> Self
pub fn no_wait_after(self, no_wait_after: bool) -> Self
Whether to skip waiting for navigation after the key press.
By default, the press will wait for any triggered navigation to complete.
Set to true to return immediately after the key is pressed.
Sourcepub async fn send(self) -> Result<(), LocatorError>
pub async fn send(self) -> Result<(), LocatorError>
Execute the press operation.
Trait Implementations§
Source§impl<'a> Debug for KeyboardPressBuilder<'a>
impl<'a> Debug for KeyboardPressBuilder<'a>
Source§impl<'a> IntoFuture for KeyboardPressBuilder<'a>
impl<'a> IntoFuture for KeyboardPressBuilder<'a>
Source§type IntoFuture = Pin<Box<dyn Future<Output = <KeyboardPressBuilder<'a> as IntoFuture>::Output> + Send + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = <KeyboardPressBuilder<'a> as IntoFuture>::Output> + Send + 'a>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a> Freeze for KeyboardPressBuilder<'a>
impl<'a> !RefUnwindSafe for KeyboardPressBuilder<'a>
impl<'a> Send for KeyboardPressBuilder<'a>
impl<'a> Sync for KeyboardPressBuilder<'a>
impl<'a> Unpin for KeyboardPressBuilder<'a>
impl<'a> !UnwindSafe for KeyboardPressBuilder<'a>
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