pub struct ClickBuilder {
inner: Weak<PageImpl>,
args: MouseClickArgs,
}Fields§
§inner: Weak<PageImpl>§args: MouseClickArgsImplementations§
Source§impl ClickBuilder
impl ClickBuilder
pub(crate) fn new(inner: Weak<PageImpl>, x: f64, y: f64) -> Self
pub async fn click(self) -> Result<(), Arc<Error>>
Defaults to left.
Sourcepub fn click_count(self, x: i32) -> Self
pub fn click_count(self, x: i32) -> Self
defaults to 1. See [UIEvent.detail].
Sourcepub fn delay(self, x: f64) -> Self
pub fn delay(self, x: f64) -> Self
Time to wait between mousedown and mouseup in milliseconds. Defaults to 0.
pub fn clear_click_count(self) -> Self
pub fn clear_delay(self) -> Self
Auto Trait Implementations§
impl Freeze for ClickBuilder
impl RefUnwindSafe for ClickBuilder
impl Send for ClickBuilder
impl Sync for ClickBuilder
impl Unpin for ClickBuilder
impl UnwindSafe for ClickBuilder
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