Struct chrome_remote_interface_model::emulation::SetVirtualTimePolicyCommand [−][src]
Emulation
and DOM
and Page
and Runtime
and experimental
only.Turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets the current virtual time policy. Note this supersedes any previous time budget.
Implementations
impl SetVirtualTimePolicyCommand
[src]
pub fn builder() -> SetVirtualTimePolicyCommandBuilder
[src]
pub fn policy(&self) -> &JsonValue
[src]
pub fn budget(&self) -> Option<&f64>
[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(&self) -> Option<&u32>
[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(&self) -> Option<&bool>
[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(&self) -> Option<&TimeSinceEpoch>
[src]
If set, base::Time::Now will be overriden to initially return this value.
Trait Implementations
impl Clone for SetVirtualTimePolicyCommand
[src]
fn clone(&self) -> SetVirtualTimePolicyCommand
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Command for SetVirtualTimePolicyCommand
[src]
type Return = SetVirtualTimePolicyReturn
Return type.
const METHOD: &'static str
[src]
fn into_request(self, session_id: Option<SessionId>, id: u32) -> Request<Self> where
Self: Sized,
[src]
Self: Sized,
impl Debug for SetVirtualTimePolicyCommand
[src]
impl<'de> Deserialize<'de> for SetVirtualTimePolicyCommand
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for SetVirtualTimePolicyCommand
[src]
Auto Trait Implementations
impl RefUnwindSafe for SetVirtualTimePolicyCommand
[src]
impl Send for SetVirtualTimePolicyCommand
[src]
impl Sync for SetVirtualTimePolicyCommand
[src]
impl Unpin for SetVirtualTimePolicyCommand
[src]
impl UnwindSafe for SetVirtualTimePolicyCommand
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,