Struct chrome_remote_interface_model::emulation::SetVirtualTimePolicyCommandBuilder[][src]

pub struct SetVirtualTimePolicyCommandBuilder { /* fields omitted */ }

Implementations

impl SetVirtualTimePolicyCommandBuilder[src]

pub fn policy(&mut self, v: JsonValue) -> &mut Self[src]

pub fn budget(&mut self, v: f64) -> &mut Self[src]

If set, after this many virtual milliseconds have elapsed virtual time will be paused and a virtualTimeBudgetExpired event is sent.

pub fn max_virtual_time_task_starvation_count(&mut self, v: u32) -> &mut Self[src]

If set this specifies the maximum number of tasks that can be run before virtual is forced forwards to prevent deadlock.

pub fn wait_for_navigation(&mut self, v: bool) -> &mut Self[src]

If set the virtual time policy change should be deferred until any frame starts navigating. Note any previous deferred policy change is superseded.

pub fn initial_virtual_time(&mut self, v: TimeSinceEpoch) -> &mut Self[src]

If set, base::Time::Now will be overriden to initially return this value.

pub fn build(&mut self) -> Result<SetVirtualTimePolicyCommand, &'static str>[src]

Trait Implementations

impl Clone for SetVirtualTimePolicyCommandBuilder[src]

impl Debug for SetVirtualTimePolicyCommandBuilder[src]

impl Default for SetVirtualTimePolicyCommandBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.