pub struct ClockBase { /* private fields */ }Expand description
The shared implementation of clocks that are driven by another time source: converts the source’s time to the time elapsed since this clock’s first pulse, not counting the time spent paused.
The owning clock forwards its source’s ticks to pulse
and supplies what to do when the clock stops.
Implementations§
Source§impl ClockBase
impl ClockBase
pub fn new() -> Self
Sourcepub fn has_subscriptions(&self) -> bool
pub fn has_subscriptions(&self) -> bool
Whether anything is subscribed to the clock.
Sourcepub fn play_state(&self) -> PlayState
pub fn play_state(&self) -> PlayState
The playback state of the clock.
Sourcepub fn set_play_state(&self, value: PlayState)
pub fn set_play_state(&self, value: PlayState)
Sets the playback state of the clock.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ClockBase
impl !RefUnwindSafe for ClockBase
impl !Send for ClockBase
impl !Sync for ClockBase
impl !UnwindSafe for ClockBase
impl Unpin for ClockBase
impl UnsafeUnpin for ClockBase
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