[−][src]Enum rx::execution::Execution
Execution mode. Controls whether the session is playing or recording commands.
Variants
Normal execution. User inputs are processed normally.
Recording user inputs to log.
Fields of Recording
events: Vec<TimedEvent>
Events being recorded.
start: Instant
Start time of recording.
path: PathBuf
Path to save recording to.
digest: DigestState
Digest mode.
recorder: FrameRecorder
Frame recorder.
Replaying inputs from log.
Fields of Replaying
events: VecDeque<TimedEvent>
Events being replayed.
start: Instant
Start time of the playback.
path: PathBuf
Path to read events from.
digest: DigestState
Digest mode.
result: ReplayResult
Replay result.
recorder: FrameRecorder
Frame recorder.
Methods
impl Execution
[src]
pub fn normal() -> Result<Self>
[src]
Create a normal execution.
pub fn recording<P: AsRef<Path>>(
path: P,
digest_mode: DigestMode,
w: u16,
h: u16,
gif_mode: GifMode
) -> Result<Self>
[src]
path: P,
digest_mode: DigestMode,
w: u16,
h: u16,
gif_mode: GifMode
) -> Result<Self>
Create a recording.
pub fn replaying<P: AsRef<Path>>(path: P, mode: DigestMode) -> Result<Self>
[src]
Create a replay.
pub fn is_normal(&self) -> bool
[src]
pub fn record(&mut self, data: &[Bgra8])
[src]
pub fn stop_recording(&mut self) -> Result<PathBuf>
[src]
pub fn finalize_replaying(&self) -> Result<PathBuf>
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Execution
impl Send for Execution
impl Sync for Execution
impl Unpin for Execution
impl UnwindSafe for Execution
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SetParameter for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,