pub struct PauseConfig { /* private fields */ }Expand description
Configuration for the manual pause before browser tests execute.
Implementations§
Source§impl PauseConfig
impl PauseConfig
Sourcepub fn from_env() -> Self
pub fn from_env() -> Self
Build a pause config from BROWSER_TEST_PAUSE.
The variable is considered enabled unless it is unset, empty, 0, false, no, or off.
Sourcepub fn from_env_var(env_var: impl AsRef<str>) -> Self
pub fn from_env_var(env_var: impl AsRef<str>) -> Self
Build a pause config from an environment variable.
The variable is considered enabled unless it is unset, empty, 0, false, no, or off.
Sourcepub fn with_message(self, message: impl Into<Cow<'static, str>>) -> Self
pub fn with_message(self, message: impl Into<Cow<'static, str>>) -> Self
Set the message printed before the prompt.
Sourcepub fn with_prompt(self, prompt: impl Into<Cow<'static, str>>) -> Self
pub fn with_prompt(self, prompt: impl Into<Cow<'static, str>>) -> Self
Set the interactive prompt.
Sourcepub const fn is_enabled(&self) -> bool
pub const fn is_enabled(&self) -> bool
Whether the pause is enabled.
Trait Implementations§
Source§impl Clone for PauseConfig
impl Clone for PauseConfig
Source§fn clone(&self) -> PauseConfig
fn clone(&self) -> PauseConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PauseConfig
impl Debug for PauseConfig
Source§impl Default for PauseConfig
impl Default for PauseConfig
Source§impl PartialEq for PauseConfig
impl PartialEq for PauseConfig
Source§fn eq(&self, other: &PauseConfig) -> bool
fn eq(&self, other: &PauseConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PauseConfig
impl StructuralPartialEq for PauseConfig
Auto Trait Implementations§
impl Freeze for PauseConfig
impl RefUnwindSafe for PauseConfig
impl Send for PauseConfig
impl Sync for PauseConfig
impl Unpin for PauseConfig
impl UnsafeUnpin for PauseConfig
impl UnwindSafe for PauseConfig
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§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.