pub struct ProxyJobStatus {
pub job_id: String,
pub source_path: String,
pub output_path: String,
pub state: ProxyState,
pub progress_percent: f64,
pub frames_processed: u64,
pub total_frames: u64,
pub error_message: Option<String>,
pub retry_count: u32,
pub max_retries: u32,
}Expand description
Status information for a single proxy generation job.
Fields§
§job_id: StringUnique job identifier.
source_path: StringSource media file path.
output_path: StringOutput proxy file path.
state: ProxyStateCurrent state of the job.
progress_percent: f64Progress percentage (0.0 to 100.0).
frames_processed: u64Number of frames processed so far.
total_frames: u64Total frames expected.
error_message: Option<String>Error message (if state is Failed).
retry_count: u32Number of retry attempts so far.
max_retries: u32Maximum number of retries allowed.
Implementations§
Source§impl ProxyJobStatus
impl ProxyJobStatus
Sourcepub fn new(job_id: &str, source: &str, output: &str) -> Self
pub fn new(job_id: &str, source: &str, output: &str) -> Self
Create a new job status in the Queued state.
Sourcepub fn with_total_frames(self, total: u64) -> Self
pub fn with_total_frames(self, total: u64) -> Self
Set the total frame count.
Sourcepub fn with_max_retries(self, max: u32) -> Self
pub fn with_max_retries(self, max: u32) -> Self
Set the maximum number of retries.
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Check if the job is in a terminal state (Completed, Failed, or Cancelled).
Sourcepub fn update_progress(&mut self, frames: u64)
pub fn update_progress(&mut self, frames: u64)
Update the progress based on frames processed.
Trait Implementations§
Source§impl Clone for ProxyJobStatus
impl Clone for ProxyJobStatus
Source§fn clone(&self) -> ProxyJobStatus
fn clone(&self) -> ProxyJobStatus
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 ProxyJobStatus
impl RefUnwindSafe for ProxyJobStatus
impl Send for ProxyJobStatus
impl Sync for ProxyJobStatus
impl Unpin for ProxyJobStatus
impl UnsafeUnpin for ProxyJobStatus
impl UnwindSafe for ProxyJobStatus
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