#[non_exhaustive]pub struct Progress { /* private fields */ }Expand description
A point-in-time, owned snapshot of a scheduled FFmpeg job’s progress,
obtained from ProgressHandle::snapshot.
A snapshot is plain data: it stays valid (and unchanged) no matter what the job does afterwards. Take a new snapshot to observe newer values.
Implementations§
Source§impl Progress
impl Progress
Sourcepub fn state(&self) -> ProgressState
pub fn state(&self) -> ProgressState
The job’s lifecycle phase at the moment of the snapshot.
Sourcepub fn elapsed(&self) -> Duration
pub fn elapsed(&self) -> Duration
Wall-clock time since start(), frozen once the job reaches
ProgressState::Ended. This is real elapsed time and includes
time spent paused — divide-by-elapsed rates in a long-paused job
sag accordingly.
Sourcepub fn outputs(&self) -> &[OutputProgress]
pub fn outputs(&self) -> &[OutputProgress]
Per-output progress, indexed by output declaration order (the order outputs were added to the builder). Always one entry per output — multi-output jobs such as an HLS ladder report each rung separately.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Progress
impl RefUnwindSafe for Progress
impl Send for Progress
impl Sync for Progress
impl Unpin for Progress
impl UnsafeUnpin for Progress
impl UnwindSafe for Progress
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