pub struct HoverBuilder<'a> {
inner: Weak<Frame>,
args: HoverArgs<'a>,
}Fields§
§inner: Weak<Frame>§args: HoverArgs<'a>Implementations§
Source§impl<'a> HoverBuilder<'a>
impl<'a> HoverBuilder<'a>
pub(crate) fn new(inner: Weak<Impl>, selector: &'a str) -> Self
pub async fn goto(self) -> Result<(), Arc<Error>>
Sourcepub fn force(self, x: bool) -> Self
pub fn force(self, x: bool) -> Self
Whether to bypass the actionability checks. Defaults to false.
Sourcepub fn modifiers(self, x: Vec<KeyboardModifier>) -> Self
pub fn modifiers(self, x: Vec<KeyboardModifier>) -> Self
Modifier keys to press. Ensures that only these modifiers are pressed during the operation, and then restores current modifiers back. If not specified, currently pressed modifiers are used.
Sourcepub fn position(self, x: Position) -> Self
pub fn position(self, x: Position) -> Self
A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the element.
pub fn timeout(self, x: f64) -> Self
Sourcepub fn trial(self, x: bool) -> Self
pub fn trial(self, x: bool) -> Self
When set, this method only performs the actionability checks and skips the action. Defaults to
false. Useful to wait until the element is ready for the action without performing it.
pub fn clear_force(self) -> Self
pub fn clear_modifiers(self) -> Self
pub fn clear_position(self) -> Self
pub fn clear_timeout(self) -> Self
pub fn clear_trial(self) -> Self
Auto Trait Implementations§
impl<'a> Freeze for HoverBuilder<'a>
impl<'a> RefUnwindSafe for HoverBuilder<'a>
impl<'a> Send for HoverBuilder<'a>
impl<'a> Sync for HoverBuilder<'a>
impl<'a> Unpin for HoverBuilder<'a>
impl<'a> UnwindSafe for HoverBuilder<'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