pub struct ClockInstallOptions {
pub time: Option<u64>,
}Expand description
Options for Clock::install.
See: https://playwright.dev/docs/api/class-clock#clock-install
Fields§
§time: Option<u64>Initial time for the fake clock in milliseconds since the Unix epoch.
When None, the clock starts at the current real time.
Trait Implementations§
Source§impl Clone for ClockInstallOptions
impl Clone for ClockInstallOptions
Source§fn clone(&self) -> ClockInstallOptions
fn clone(&self) -> ClockInstallOptions
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 Debug for ClockInstallOptions
impl Debug for ClockInstallOptions
Source§impl Default for ClockInstallOptions
impl Default for ClockInstallOptions
Source§fn default() -> ClockInstallOptions
fn default() -> ClockInstallOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClockInstallOptions
impl RefUnwindSafe for ClockInstallOptions
impl Send for ClockInstallOptions
impl Sync for ClockInstallOptions
impl Unpin for ClockInstallOptions
impl UnsafeUnpin for ClockInstallOptions
impl UnwindSafe for ClockInstallOptions
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