pub struct GenerationProgress {
pub eta_seconds: f32,
pub progress_factor: f32,
pub current_image: Option<DynamicImage>,
pub job_timestamp: Option<DateTime<Local>>,
}Expand description
How much of the generation is complete.
Note that this can return a zero value on completion as the web UI can take time to return the result after completion.
Fields§
§eta_seconds: f32Estimated time to completion, in seconds
progress_factor: f32How much of the generation is complete, from 0 to 1
current_image: Option<DynamicImage>The current image being generated, if available.
job_timestamp: Option<DateTime<Local>>The timestamp that the current job was started. Can be used to disambiguate between jobs.
Implementations§
Source§impl GenerationProgress
impl GenerationProgress
Sourcepub fn is_finished(&self) -> bool
pub fn is_finished(&self) -> bool
Whether or not the generation has completed.
Auto Trait Implementations§
impl Freeze for GenerationProgress
impl RefUnwindSafe for GenerationProgress
impl Send for GenerationProgress
impl Sync for GenerationProgress
impl Unpin for GenerationProgress
impl UnwindSafe for GenerationProgress
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> 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