pub struct PlayerConfig {
pub speed: f32,
pub step_mode: bool,
pub replay_mode: ReplayMode,
pub event_filter: Vec<String>,
}Expand description
Configuration for session playback.
Fields§
§speed: f32Replay speed multiplier (1.0 = original speed, 2.0 = 2x faster).
step_mode: boolIf true, pause after each event and wait for Enter.
replay_mode: ReplayModeOutput mode for UX events.
event_filter: Vec<String>Filter to specific event types (empty = all events).
Implementations§
Source§impl PlayerConfig
impl PlayerConfig
Sourcepub fn with_speed(self, speed: f32) -> Self
pub fn with_speed(self, speed: f32) -> Self
Sets the speed multiplier.
Sourcepub fn with_step_mode(self) -> Self
pub fn with_step_mode(self) -> Self
Enables step-through mode.
Sourcepub fn with_filter(self, events: Vec<String>) -> Self
pub fn with_filter(self, events: Vec<String>) -> Self
Filters to specific event types.
Trait Implementations§
Source§impl Clone for PlayerConfig
impl Clone for PlayerConfig
Source§fn clone(&self) -> PlayerConfig
fn clone(&self) -> PlayerConfig
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 PlayerConfig
impl Debug for PlayerConfig
Auto Trait Implementations§
impl Freeze for PlayerConfig
impl RefUnwindSafe for PlayerConfig
impl Send for PlayerConfig
impl Sync for PlayerConfig
impl Unpin for PlayerConfig
impl UnsafeUnpin for PlayerConfig
impl UnwindSafe for PlayerConfig
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