Clock
struct · ferroui-base · v0.5.0
struct Clock
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.
Members
global_clock
fn global_clock() -> Rc<dyn IClock>
The global clock: the dyn IGlobalClock service.
Panics when no global clock is registered.
new
fn new() -> Rc<Clock>
Creates a clock that runs on the global clock.
with_parent
fn with_parent(parent: &Rc<dyn IClock>) -> Rc<Clock>
Creates a clock that runs on parent.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnySubscribeGuard<T>ErasedDestructorIntoEitherIObservable<SignedDuration>IClock
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.