pub struct Clock { /* private fields */ }
Implementations§
Source§impl Clock
impl Clock
Sourcepub fn set_time_ms(&mut self, ms: i64)
pub fn set_time_ms(&mut self, ms: i64)
Set the clock time in milliseconds.
ms
- Milliseconds to set time from.
Sourcepub fn set_time_secs(&mut self, seconds: i64)
pub fn set_time_secs(&mut self, seconds: i64)
Set the clock time in seconds.
seconds
- Seconds to set time from.
Auto Trait Implementations§
impl Freeze for Clock
impl RefUnwindSafe for Clock
impl Send for Clock
impl Sync for Clock
impl Unpin for Clock
impl UnwindSafe for Clock
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