pub struct ReplayBehavior {
pub default_speed: ReplaySpeed,
pub loop_playback: bool,
pub auto_scroll: bool,
pub lookahead_bars: usize,
pub pause_on_interaction: bool,
pub min_bar_duration: f64,
pub max_bar_duration: f64,
pub show_bar_counter: bool,
pub show_elapsed_time: bool,
pub show_remaining_time: bool,
}Expand description
Behavior configuration for replay
Fields§
§default_speed: ReplaySpeedDefault playback speed
loop_playback: boolWhether to loop when reaching end
auto_scroll: boolWhether to auto-scroll chart during playback
lookahead_bars: usizeNumber of bars to keep visible ahead of current position
pause_on_interaction: boolWhether to pause on user interaction (e.g., clicking chart)
min_bar_duration: f64Min time between bar updates (in seconds)
max_bar_duration: f64Max time between bar updates (in seconds)
show_bar_counter: boolWhether to show bar counter
show_elapsed_time: boolWhether to show elapsed time
show_remaining_time: boolWhether to show remaining time
Trait Implementations§
Source§impl Clone for ReplayBehavior
impl Clone for ReplayBehavior
Source§fn clone(&self) -> ReplayBehavior
fn clone(&self) -> ReplayBehavior
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReplayBehavior
impl Debug for ReplayBehavior
Auto Trait Implementations§
impl Freeze for ReplayBehavior
impl RefUnwindSafe for ReplayBehavior
impl Send for ReplayBehavior
impl Sync for ReplayBehavior
impl Unpin for ReplayBehavior
impl UnsafeUnpin for ReplayBehavior
impl UnwindSafe for ReplayBehavior
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more