pub enum PageState {
Ready,
Busy,
Error,
}Expand description
Lifecycle state of a pooled browser page.
Pages start in Ready, transition to Busy during navigation, and return to
Ready on success or move to Error on unrecoverable failure.
Variants§
Ready
The page is idle and available for a new navigation. A page returns to this state after a successful fetch cycle.
Busy
The page is currently performing a navigation or action. While in this state the page should not be reused by another fetch.
Error
The page encountered an unrecoverable error and should be discarded.
Call PagePool::cleanup_error_pages to remove all errored pages.
Trait Implementations§
impl Copy for PageState
impl Eq for PageState
impl StructuralPartialEq for PageState
Auto Trait Implementations§
impl Freeze for PageState
impl RefUnwindSafe for PageState
impl Send for PageState
impl Sync for PageState
impl Unpin for PageState
impl UnsafeUnpin for PageState
impl UnwindSafe for PageState
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.