pub struct RungProgress {
pub rung_index: usize,
pub label: String,
pub width: u32,
pub height: u32,
pub status: RungStatus,
pub percent: f32,
pub frames_done: u64,
pub frames_total: Option<u64>,
pub segments_written: u32,
pub bytes_out: u64,
pub message: Option<String>,
}Expand description
A uniform progress update for one rung. Emitted repeatedly over the life of the job. Consumers can render a per-rung progress bar straight from these fields without knowing anything about the output mode.
Fields§
§rung_index: usizeIndex into the job’s rungs list.
label: StringHuman label, e.g. "720p".
width: u32Target width in pixels.
height: u32Target height in pixels.
status: RungStatusCurrent status.
percent: f32Completion fraction in 0.0..=100.0. Derived from
frames_done / frames_total when the total is known, else a coarse
stage estimate.
frames_done: u64Frames encoded so far for this rung.
frames_total: Option<u64>Total frames expected, if known up front (from the container header).
segments_written: u32Segments written (HLS/CMAF mode only; 0 for single-file).
bytes_out: u64Output bytes produced so far for this rung.
message: Option<String>Optional human message — error text on Failed, notes otherwise.
Implementations§
Trait Implementations§
Source§impl Clone for RungProgress
impl Clone for RungProgress
Source§fn clone(&self) -> RungProgress
fn clone(&self) -> RungProgress
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 moreAuto Trait Implementations§
impl Freeze for RungProgress
impl RefUnwindSafe for RungProgress
impl Send for RungProgress
impl Sync for RungProgress
impl Unpin for RungProgress
impl UnsafeUnpin for RungProgress
impl UnwindSafe for RungProgress
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