Struct kira::clock::ClockHandle
source · [−]pub struct ClockHandle { /* private fields */ }
Expand description
Controls a clock.
When a ClockHandle
is dropped, the corresponding clock
will be removed.
Implementations
pub fn set_speed(
&mut self,
speed: impl Into<ClockSpeed>,
tween: Tween
) -> Result<(), CommandError>
pub fn set_speed(
&mut self,
speed: impl Into<ClockSpeed>,
tween: Tween
) -> Result<(), CommandError>
Sets the speed of the clock.
Starts or resumes the clock.
Pauses the clock.
Stops and resets the clock.
Trait Implementations
Performs the conversion.