pub struct Clock { /* private fields */ }Expand description
A clock that runs on another clock: its time starts at zero on the first tick of the parent after it was created, and stands still while it is paused.
The clock subscribes to its parent when it is created, whether or not
anything is subscribed to it, and unsubscribes on the first tick after
its play state was set to PlayState::Stop.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Clock
impl !RefUnwindSafe for Clock
impl !Send for Clock
impl !Sync for Clock
impl !UnwindSafe for Clock
impl Unpin for Clock
impl UnsafeUnpin 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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more