pub struct ProgressInfo {
pub current_frame: u64,
pub total_frames: u64,
pub percent: f64,
pub eta: Option<Duration>,
pub fps: f64,
pub bitrate: u64,
pub elapsed: Duration,
pub pass: u32,
pub total_passes: u32,
}Expand description
Progress information for a transcode operation.
Fields§
§current_frame: u64Current frame number being processed.
total_frames: u64Total number of frames to process.
percent: f64Percentage complete (0-100).
eta: Option<Duration>Estimated time remaining.
fps: f64Current encoding speed (frames per second).
bitrate: u64Current bitrate in bits per second.
elapsed: DurationElapsed time since start.
pass: u32Current pass number (for multi-pass encoding).
total_passes: u32Total number of passes.
Implementations§
Source§impl ProgressInfo
impl ProgressInfo
Sourcepub fn format_eta(&self) -> String
pub fn format_eta(&self) -> String
Formats the ETA as a human-readable string.
Sourcepub fn format_elapsed(&self) -> String
pub fn format_elapsed(&self) -> String
Formats the elapsed time as a human-readable string.
Sourcepub fn format_bitrate(&self) -> String
pub fn format_bitrate(&self) -> String
Formats the bitrate as a human-readable string.
Trait Implementations§
Source§impl Clone for ProgressInfo
impl Clone for ProgressInfo
Source§fn clone(&self) -> ProgressInfo
fn clone(&self) -> ProgressInfo
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 moreAuto Trait Implementations§
impl Freeze for ProgressInfo
impl RefUnwindSafe for ProgressInfo
impl Send for ProgressInfo
impl Sync for ProgressInfo
impl Unpin for ProgressInfo
impl UnsafeUnpin for ProgressInfo
impl UnwindSafe for ProgressInfo
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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