pub struct RenderProgress {
pub progress: f64,
pub fps: Option<f64>,
pub estimated_time_left: Duration,
pub output_buffer: Buffer,
}Expand description
Progress reported back to the caller of the raytrace function
Fields§
§progress: f64progress is reported between 0 -> 1 and represents a percentage of completion
fps: Option<f64>Current speed of rendering in number of frames per second
estimated_time_left: DurationEstimated time left until rendering is complete
output_buffer: BufferOutput buffer containing the image data
Auto Trait Implementations§
impl Freeze for RenderProgress
impl !RefUnwindSafe for RenderProgress
impl Send for RenderProgress
impl Sync for RenderProgress
impl Unpin for RenderProgress
impl UnsafeUnpin for RenderProgress
impl !UnwindSafe for RenderProgress
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> 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