pub struct SetVirtualTimePolicyCommandBuilder { /* private fields */ }Available on crate features
Emulation and DOM and Page and Runtime and experimental only.Implementations§
Source§impl SetVirtualTimePolicyCommandBuilder
impl SetVirtualTimePolicyCommandBuilder
pub fn policy(&mut self, v: JsonValue) -> &mut Self
Sourcepub fn budget(&mut self, v: f64) -> &mut Self
pub fn budget(&mut self, v: f64) -> &mut Self
If set, after this many virtual milliseconds have elapsed virtual time will be paused and a virtualTimeBudgetExpired event is sent.
Sourcepub fn max_virtual_time_task_starvation_count(&mut self, v: u32) -> &mut Self
pub fn max_virtual_time_task_starvation_count(&mut self, v: u32) -> &mut Self
If set this specifies the maximum number of tasks that can be run before virtual is forced forwards to prevent deadlock.
If set the virtual time policy change should be deferred until any frame starts navigating. Note any previous deferred policy change is superseded.
Sourcepub fn initial_virtual_time(&mut self, v: TimeSinceEpoch) -> &mut Self
pub fn initial_virtual_time(&mut self, v: TimeSinceEpoch) -> &mut Self
If set, base::Time::Now will be overriden to initially return this value.
pub fn build(&mut self) -> Result<SetVirtualTimePolicyCommand, &'static str>
Trait Implementations§
Source§impl Clone for SetVirtualTimePolicyCommandBuilder
impl Clone for SetVirtualTimePolicyCommandBuilder
Source§fn clone(&self) -> SetVirtualTimePolicyCommandBuilder
fn clone(&self) -> SetVirtualTimePolicyCommandBuilder
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 moreAuto Trait Implementations§
impl Freeze for SetVirtualTimePolicyCommandBuilder
impl RefUnwindSafe for SetVirtualTimePolicyCommandBuilder
impl Send for SetVirtualTimePolicyCommandBuilder
impl Sync for SetVirtualTimePolicyCommandBuilder
impl Unpin for SetVirtualTimePolicyCommandBuilder
impl UnwindSafe for SetVirtualTimePolicyCommandBuilder
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