pub struct SetVirtualTimePolicyReturnObject {
pub virtual_time_ticks_base: JsFloat,
}Expand description
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.
Fields§
§virtual_time_ticks_base: JsFloatAbsolute timestamp at which virtual time was first enabled (up time in milliseconds).
Trait Implementations§
Source§impl Clone for SetVirtualTimePolicyReturnObject
impl Clone for SetVirtualTimePolicyReturnObject
Source§fn clone(&self) -> SetVirtualTimePolicyReturnObject
fn clone(&self) -> SetVirtualTimePolicyReturnObject
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 moreSource§impl<'de> Deserialize<'de> for SetVirtualTimePolicyReturnObject
impl<'de> Deserialize<'de> for SetVirtualTimePolicyReturnObject
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SetVirtualTimePolicyReturnObject
impl PartialEq for SetVirtualTimePolicyReturnObject
Source§fn eq(&self, other: &SetVirtualTimePolicyReturnObject) -> bool
fn eq(&self, other: &SetVirtualTimePolicyReturnObject) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SetVirtualTimePolicyReturnObject
Auto Trait Implementations§
impl Freeze for SetVirtualTimePolicyReturnObject
impl RefUnwindSafe for SetVirtualTimePolicyReturnObject
impl Send for SetVirtualTimePolicyReturnObject
impl Sync for SetVirtualTimePolicyReturnObject
impl Unpin for SetVirtualTimePolicyReturnObject
impl UnsafeUnpin for SetVirtualTimePolicyReturnObject
impl UnwindSafe for SetVirtualTimePolicyReturnObject
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