#[non_exhaustive]pub enum ProgressState {
Running,
Paused,
Finishing,
Ended,
}Expand description
Coarse lifecycle phase of a scheduled FFmpeg job at the moment a
Progress snapshot was taken.
The variants are ordered by the normal lifecycle
(Running → Finishing → Ended, with Paused reachable from
Running), but a snapshot only reports the current phase — it does not
promise that every phase is observable (a short job can go straight from
Running to Ended between two snapshots).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Running
Workers are processing and at least one input is still producing.
Paused
The job is paused (see FfmpegScheduler::pause). Wall-clock time
keeps accruing in Progress::elapsed
while paused.
Finishing
The pipeline is winding down: either every input producer (demuxer / frame source) has finished producing and the decoders, filters, encoders and muxers are flushing their tails, or a stop/abort signal has been published and workers are tearing down. Outputs may still be finalizing (trailer writes included).
Ended
Every tracked worker has torn down. All snapshot values — including
Progress::elapsed — are frozen from
this point on, whether the job succeeded, failed, or was aborted
(this state does not distinguish those outcomes; wait()/stop()
report them).
Trait Implementations§
Source§impl Clone for ProgressState
impl Clone for ProgressState
Source§fn clone(&self) -> ProgressState
fn clone(&self) -> ProgressState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ProgressState
Source§impl Debug for ProgressState
impl Debug for ProgressState
impl Eq for ProgressState
Source§impl Hash for ProgressState
impl Hash for ProgressState
Source§impl PartialEq for ProgressState
impl PartialEq for ProgressState
impl StructuralPartialEq for ProgressState
Auto Trait Implementations§
impl Freeze for ProgressState
impl RefUnwindSafe for ProgressState
impl Send for ProgressState
impl Sync for ProgressState
impl Unpin for ProgressState
impl UnsafeUnpin for ProgressState
impl UnwindSafe for ProgressState
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.