pub struct PlaybackOptions {
pub speed: PlaybackSpeed,
pub max_idle: Duration,
pub show_input: bool,
pub pause_at_markers: bool,
}Expand description
Playback options.
Fields§
§speed: PlaybackSpeedPlayback speed.
max_idle: DurationMaximum idle time between events.
show_input: boolWhether to show input events.
pause_at_markers: boolWhether to pause at markers.
Implementations§
Source§impl PlaybackOptions
impl PlaybackOptions
Sourcepub const fn with_speed(self, speed: PlaybackSpeed) -> Self
pub const fn with_speed(self, speed: PlaybackSpeed) -> Self
Set playback speed.
Sourcepub const fn with_max_idle(self, max: Duration) -> Self
pub const fn with_max_idle(self, max: Duration) -> Self
Set maximum idle time.
Sourcepub const fn with_show_input(self, show: bool) -> Self
pub const fn with_show_input(self, show: bool) -> Self
Show input events.
Trait Implementations§
Source§impl Clone for PlaybackOptions
impl Clone for PlaybackOptions
Source§fn clone(&self) -> PlaybackOptions
fn clone(&self) -> PlaybackOptions
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 Debug for PlaybackOptions
impl Debug for PlaybackOptions
Auto Trait Implementations§
impl Freeze for PlaybackOptions
impl RefUnwindSafe for PlaybackOptions
impl Send for PlaybackOptions
impl Sync for PlaybackOptions
impl Unpin for PlaybackOptions
impl UnwindSafe for PlaybackOptions
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