pub enum LoadState {
Load,
DomContentLoaded,
NetworkIdle,
}Expand description
Page load states (Playwright parity)
Variants§
Load
Wait for the load event to fire
DomContentLoaded
Wait for DOMContentLoaded event
NetworkIdle
Wait for network to be idle (no requests for 500ms)
Implementations§
Source§impl LoadState
impl LoadState
Sourcepub const fn event_name(&self) -> &'static str
pub const fn event_name(&self) -> &'static str
Get the JavaScript event name for this load state
Sourcepub const fn default_timeout_ms(&self) -> u64
pub const fn default_timeout_ms(&self) -> u64
Get default timeout for this load state
Trait Implementations§
impl Copy for LoadState
impl Eq for LoadState
impl StructuralPartialEq for LoadState
Auto Trait Implementations§
impl Freeze for LoadState
impl RefUnwindSafe for LoadState
impl Send for LoadState
impl Sync for LoadState
impl Unpin for LoadState
impl UnsafeUnpin for LoadState
impl UnwindSafe for LoadState
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.