pub struct WaitForSelectorBuilder<'a> {
inner: Weak<Frame>,
args: WaitForSelectorArgs<'a>,
}Fields§
§inner: Weak<Frame>§args: WaitForSelectorArgs<'a>Implementations§
Source§impl<'a> WaitForSelectorBuilder<'a>
impl<'a> WaitForSelectorBuilder<'a>
pub(crate) fn new(inner: Weak<Impl>, selector: &'a str) -> Self
pub async fn wait_for_selector( self, ) -> Result<Option<ElementHandle>, Arc<Error>>
Sourcepub fn state(self, x: FrameState) -> Self
pub fn state(self, x: FrameState) -> Self
Defaults to 'visible'.
pub fn timeout(self, x: f64) -> Self
pub fn clear_state(self) -> Self
pub fn clear_timeout(self) -> Self
Auto Trait Implementations§
impl<'a> Freeze for WaitForSelectorBuilder<'a>
impl<'a> RefUnwindSafe for WaitForSelectorBuilder<'a>
impl<'a> Send for WaitForSelectorBuilder<'a>
impl<'a> Sync for WaitForSelectorBuilder<'a>
impl<'a> Unpin for WaitForSelectorBuilder<'a>
impl<'a> UnwindSafe for WaitForSelectorBuilder<'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