Struct freya_testing::TestingConfig
source · pub struct TestingConfig { /* private fields */ }
Expand description
Configuration for crate::test_handler::TestingHandler
.
Implementations§
source§impl TestingConfig
impl TestingConfig
pub fn new() -> Self
sourcepub fn with_vdom_timeout(&mut self, vdom_timeout: Duration) -> &mut Self
pub fn with_vdom_timeout(&mut self, vdom_timeout: Duration) -> &mut Self
Specify a custom duration for the VirtualDOM polling timeout, default is 16ms.
sourcepub fn vdom_timeout(&self) -> Duration
pub fn vdom_timeout(&self) -> Duration
Get the VirtualDOM polling timeout.
pub fn enable_ticker(&mut self, ticker: bool)
Trait Implementations§
source§impl Clone for TestingConfig
impl Clone for TestingConfig
source§fn clone(&self) -> TestingConfig
fn clone(&self) -> TestingConfig
Returns a copy 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 Default for TestingConfig
impl Default for TestingConfig
impl Copy for TestingConfig
Auto Trait Implementations§
impl RefUnwindSafe for TestingConfig
impl Send for TestingConfig
impl Sync for TestingConfig
impl Unpin for TestingConfig
impl UnwindSafe for TestingConfig
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.