pub enum WarmupWait {
DomContentLoaded,
NetworkIdle,
}Expand description
Simplified, JSON-serializable wait strategy used in WarmupOptions and
RefreshOptions.
This is a serialization-friendly analogue of WaitUntil. Use
WarmupWait::into_wait_until to convert before calling
PageHandle::navigate.
Variants§
DomContentLoaded
Wait until the HTML is fully parsed (DOMContentLoaded). This is the
default and works for most pages.
NetworkIdle
Wait until there are no more than two in-flight network requests for at least 500 ms after navigation.
Implementations§
Source§impl WarmupWait
impl WarmupWait
Sourcepub const fn into_wait_until(self) -> WaitUntil
pub const fn into_wait_until(self) -> WaitUntil
Convert into the lower-level WaitUntil enum.
Trait Implementations§
Source§impl Clone for WarmupWait
impl Clone for WarmupWait
Source§fn clone(&self) -> WarmupWait
fn clone(&self) -> WarmupWait
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WarmupWait
impl Debug for WarmupWait
Source§impl Default for WarmupWait
impl Default for WarmupWait
Source§fn default() -> WarmupWait
fn default() -> WarmupWait
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WarmupWait
impl<'de> Deserialize<'de> for WarmupWait
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WarmupWait
impl PartialEq for WarmupWait
Source§impl Serialize for WarmupWait
impl Serialize for WarmupWait
impl Eq for WarmupWait
impl StructuralPartialEq for WarmupWait
Auto Trait Implementations§
impl Freeze for WarmupWait
impl RefUnwindSafe for WarmupWait
impl Send for WarmupWait
impl Sync for WarmupWait
impl Unpin for WarmupWait
impl UnsafeUnpin for WarmupWait
impl UnwindSafe for WarmupWait
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.