pub struct ControlSpec {
pub frame_delay: Option<u32>,
pub fade_duration: Option<u32>,
pub start_delay: Option<u32>,
}Expand description
Controls playback behavior of the SVG animation.
This struct defines timing-related parameters that influence how characters are rendered over time:
- [
frame_delay] โ typing interval per character (ms); - [
fade_duration] โ fade-in duration per character (ms); - [
start_delay] โ delay before animation begins (ms).
These values can be customized via CLI arguments or presets.
Fieldsยง
ยงframe_delay: Option<u32>Optional delay per character in milliseconds (typing speed).
If None, falls back to DEFAULT_CONTROL_FRAME_DELAY.
fade_duration: Option<u32>Optional duration of character fade-in animation (in ms).
If None, falls back to DEFAULT_CONTROL_FADE_DURATION.
start_delay: Option<u32>Optional initial delay before animation starts (in ms).
If None, falls back to DEFAULT_CONTROL_START_DELAY.
Trait Implementationsยง
Sourceยงimpl Clone for ControlSpec
impl Clone for ControlSpec
Sourceยงfn clone(&self) -> ControlSpec
fn clone(&self) -> ControlSpec
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSourceยงimpl Default for ControlSpec
Default timing values for ControlSpec.
impl Default for ControlSpec
Default timing values for ControlSpec.
These defaults are context-agnostic and used when no override is provided (e.g. from CLI or theme).
Auto Trait Implementationsยง
impl Freeze for ControlSpec
impl RefUnwindSafe for ControlSpec
impl Send for ControlSpec
impl Sync for ControlSpec
impl Unpin for ControlSpec
impl UnwindSafe for ControlSpec
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