pub struct Wait<'c> { /* private fields */ }
Expand description
Used for setting up a wait operation on the client.
Implementations§
Source§impl<'c> Wait<'c>
impl<'c> Wait<'c>
Sourcepub fn new(client: &'c Client) -> Self
pub fn new(client: &'c Client) -> Self
Create a new wait operation from a client.
This only starts the process of building a new wait operation. Waiting, and checking, will only begin once one of the consuming methods has been called.
// -- snip wrapper code --
let button = client.wait().for_element(Locator::Css(
r#"a.button-download[href="/learn/get-started"]"#,
)).await?;
// -- snip wrapper code --
Sourcepub fn at_most(self, timeout: Duration) -> Self
pub fn at_most(self, timeout: Duration) -> Self
Set the timeout until the operation should wait.
Trait Implementations§
Auto Trait Implementations§
impl<'c> Freeze for Wait<'c>
impl<'c> !RefUnwindSafe for Wait<'c>
impl<'c> Send for Wait<'c>
impl<'c> Sync for Wait<'c>
impl<'c> Unpin for Wait<'c>
impl<'c> !UnwindSafe for Wait<'c>
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