pub struct PendingExport {
pub scratch_path: PathBuf,
pub duration_ms: u64,
pub started_at_unix_secs: u64,
}Expand description
A finished recording sitting in the scratch directory, awaiting
the user’s format choice in the Save panel (M-SAVE.1). Held in
RecordingState::pending_export between stop_recording and
export_recording / discard_recording. Pure Rust — no
Tauri / serde; the IPC-facing mirror is PendingExportView.
Fields§
§scratch_path: PathBufAbsolute path to the finalized scratch file. Always MP4 / H.264
— the canonical intermediate; the Save panel’s format choice
decides whether export moves it (MP4) or transcodes it (WebM).
duration_ms: u64Recording duration in ms, frozen at stop.
started_at_unix_secs: u64Wall-clock start time (Unix seconds) — drives the exported
Screen-YYYY-MM-DD-HHMMSS.<ext> filename.
Implementations§
Source§impl PendingExport
impl PendingExport
Sourcepub fn view(&self) -> PendingExportView
pub fn view(&self) -> PendingExportView
Project to the IPC mirror — duration + the suggested base filename (no extension), dropping the internal scratch path.
Trait Implementations§
Source§impl Clone for PendingExport
impl Clone for PendingExport
Source§fn clone(&self) -> PendingExport
fn clone(&self) -> PendingExport
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 PendingExport
impl Debug for PendingExport
Source§impl PartialEq for PendingExport
impl PartialEq for PendingExport
Source§fn eq(&self, other: &PendingExport) -> bool
fn eq(&self, other: &PendingExport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PendingExport
impl StructuralPartialEq for PendingExport
Auto Trait Implementations§
impl Freeze for PendingExport
impl RefUnwindSafe for PendingExport
impl Send for PendingExport
impl Sync for PendingExport
impl Unpin for PendingExport
impl UnsafeUnpin for PendingExport
impl UnwindSafe for PendingExport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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