pub struct RenderChunk {
pub chunk_id: usize,
pub frame_start: u64,
pub frame_end: u64,
pub output_path: Option<PathBuf>,
}Expand description
A contiguous range of frames assigned to one render worker.
Fields§
§chunk_id: usizeZero-based chunk index.
frame_start: u64First frame of the chunk (inclusive).
frame_end: u64Last frame of the chunk (exclusive).
output_path: Option<PathBuf>Optional path for writing the chunk output.
Implementations§
Source§impl RenderChunk
impl RenderChunk
Sourcepub fn new(chunk_id: usize, frame_start: u64, frame_end: u64) -> Self
pub fn new(chunk_id: usize, frame_start: u64, frame_end: u64) -> Self
Create a new render chunk without an output path.
Sourcepub fn with_output(
chunk_id: usize,
frame_start: u64,
frame_end: u64,
output_path: PathBuf,
) -> Self
pub fn with_output( chunk_id: usize, frame_start: u64, frame_end: u64, output_path: PathBuf, ) -> Self
Create a render chunk with an explicit output path.
Sourcepub fn frame_count(&self) -> u64
pub fn frame_count(&self) -> u64
Number of frames in this chunk.
Trait Implementations§
Source§impl Clone for RenderChunk
impl Clone for RenderChunk
Source§fn clone(&self) -> RenderChunk
fn clone(&self) -> RenderChunk
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 RenderChunk
impl RefUnwindSafe for RenderChunk
impl Send for RenderChunk
impl Sync for RenderChunk
impl Unpin for RenderChunk
impl UnsafeUnpin for RenderChunk
impl UnwindSafe for RenderChunk
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