#[non_exhaustive]pub struct ClockInstallOptions {
pub time: Option<u64>,
}Expand description
Options for Clock::install.
See: https://playwright.dev/docs/api/class-clock#clock-install
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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.
Implementations§
Trait Implementations§
Source§impl Clone for ClockInstallOptions
impl Clone for ClockInstallOptions
Source§impl Debug for ClockInstallOptions
impl Debug for ClockInstallOptions
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