pub struct ProgressTracker { /* private fields */ }Expand description
Progress tracker for transcode operations.
Implementations§
Source§impl ProgressTracker
impl ProgressTracker
Sourcepub fn new(total_frames: u64, total_passes: u32) -> Self
pub fn new(total_frames: u64, total_passes: u32) -> Self
Creates a new progress tracker.
§Arguments
total_frames- Total number of frames to processtotal_passes- Total number of encoding passes
Sourcepub fn set_callback(&mut self, callback: ProgressCallback)
pub fn set_callback(&mut self, callback: ProgressCallback)
Sets the progress callback function.
Sourcepub fn set_update_interval(&mut self, interval: Duration)
pub fn set_update_interval(&mut self, interval: Duration)
Sets the update interval for callbacks.
Sourcepub fn update_frame(&self, frame: u64)
pub fn update_frame(&self, frame: u64)
Updates the current frame number.
Sourcepub fn increment_frame(&self)
pub fn increment_frame(&self)
Increments the current frame by one.
Sourcepub fn get_info(&self) -> ProgressInfo
pub fn get_info(&self) -> ProgressInfo
Gets the current progress information.
Sourcepub fn reset_for_pass(&self, pass: u32)
pub fn reset_for_pass(&self, pass: u32)
Resets the tracker for a new pass.
Auto Trait Implementations§
impl Freeze for ProgressTracker
impl !RefUnwindSafe for ProgressTracker
impl Send for ProgressTracker
impl Sync for ProgressTracker
impl Unpin for ProgressTracker
impl UnsafeUnpin for ProgressTracker
impl !UnwindSafe for ProgressTracker
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> 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