pub struct RenderJob {
pub id: JobId,
pub timeline_snapshot: TimelineSnapshot,
pub export_config: ExportConfig,
pub priority: i32,
pub status: JobStatus,
pub label: Option<String>,
pub error_message: Option<String>,
pub progress: u8,
/* private fields */
}Expand description
A single export task in the render queue.
Fields§
§id: JobIdUnique job identifier (assigned by the queue).
timeline_snapshot: TimelineSnapshotSnapshot of the timeline to render.
export_config: ExportConfigExport configuration.
priority: i32Priority: higher values are dequeued first.
status: JobStatusCurrent lifecycle status.
label: Option<String>Optional human-readable label.
error_message: Option<String>Optional error message set when status transitions to Failed.
progress: u8Progress percentage (0–100), updated by the worker.
Implementations§
Source§impl RenderJob
impl RenderJob
Sourcepub fn new(
timeline_snapshot: TimelineSnapshot,
export_config: ExportConfig,
priority: i32,
) -> Self
pub fn new( timeline_snapshot: TimelineSnapshot, export_config: ExportConfig, priority: i32, ) -> Self
Create a new RenderJob.
The id and seq fields are assigned by the owning RenderQueue;
do not set them manually.
Sourcepub fn with_label(self, label: impl Into<String>) -> Self
pub fn with_label(self, label: impl Into<String>) -> Self
Attach a human-readable label to the job.
Sourcepub fn is_pending(&self) -> bool
pub fn is_pending(&self) -> bool
Returns true if this job is pending (eligible for next_job).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RenderJob
impl RefUnwindSafe for RenderJob
impl Send for RenderJob
impl Sync for RenderJob
impl Unpin for RenderJob
impl UnsafeUnpin for RenderJob
impl UnwindSafe for RenderJob
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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