pub enum UnrouteBehavior {
Wait,
IgnoreErrors,
Default,
}Expand description
Behavior when removing route handlers via unroute_all().
See: https://playwright.dev/docs/api/class-page#page-unroute-all
Variants§
Wait
Wait for in-flight handlers to complete before removing
IgnoreErrors
Stop handlers and ignore any errors they throw
Default
Default behavior (does not wait, does not ignore errors)
Trait Implementations§
Source§impl Clone for UnrouteBehavior
impl Clone for UnrouteBehavior
Source§fn clone(&self) -> UnrouteBehavior
fn clone(&self) -> UnrouteBehavior
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 UnrouteBehavior
impl Debug for UnrouteBehavior
Source§impl PartialEq for UnrouteBehavior
impl PartialEq for UnrouteBehavior
impl Copy for UnrouteBehavior
impl Eq for UnrouteBehavior
impl StructuralPartialEq for UnrouteBehavior
Auto Trait Implementations§
impl Freeze for UnrouteBehavior
impl RefUnwindSafe for UnrouteBehavior
impl Send for UnrouteBehavior
impl Sync for UnrouteBehavior
impl Unpin for UnrouteBehavior
impl UnsafeUnpin for UnrouteBehavior
impl UnwindSafe for UnrouteBehavior
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