pub enum WaitUntil {
Load,
DOMContentLoaded,
NetworkIdle0,
NetworkIdle2,
}Expand description
Page navigation wait condition
Variants§
Load
Wait for load event (document.readyState === ‘complete’) This is the strictest condition, waiting for all resources (images, stylesheets, etc.) to load
DOMContentLoaded
Wait for DOMContentLoaded event (document.readyState === ‘interactive’ or ‘complete’) DOM tree is built, but external resources may still be loading
NetworkIdle0
Wait for network idle (no network connections for at least 500ms) Suitable for SPAs waiting for async data loading
NetworkIdle2
Wait for network almost idle (no more than 2 network connections for at least 500ms) More relaxed than NetworkIdle0, suitable for most scenarios
Trait Implementations§
impl Copy for WaitUntil
impl Eq for WaitUntil
impl StructuralPartialEq for WaitUntil
Auto Trait Implementations§
impl Freeze for WaitUntil
impl RefUnwindSafe for WaitUntil
impl Send for WaitUntil
impl Sync for WaitUntil
impl Unpin for WaitUntil
impl UnwindSafe for WaitUntil
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.