pub struct BatchSummary {
pub total_jobs: usize,
pub successful: usize,
pub failed: usize,
pub total_audio_seconds: f64,
pub total_infer_seconds: f64,
pub results: Vec<BatchResult>,
}Expand description
Summary of a batch synthesis run
Fields§
§total_jobs: usize§successful: usize§failed: usize§total_audio_seconds: f64§total_infer_seconds: f64§results: Vec<BatchResult>Implementations§
Source§impl BatchSummary
impl BatchSummary
Sourcepub fn from_results(results: Vec<BatchResult>) -> Self
pub fn from_results(results: Vec<BatchResult>) -> Self
Compute summary from a list of results.
Sourcepub fn real_time_factor(&self) -> f64
pub fn real_time_factor(&self) -> f64
Overall real-time factor (infer_seconds / audio_seconds). Returns 0.0 if no audio was produced.
Sourcepub fn to_summary_string(&self) -> String
pub fn to_summary_string(&self) -> String
Format as human-readable summary string.
Trait Implementations§
Source§impl Clone for BatchSummary
impl Clone for BatchSummary
Source§fn clone(&self) -> BatchSummary
fn clone(&self) -> BatchSummary
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 BatchSummary
impl RefUnwindSafe for BatchSummary
impl Send for BatchSummary
impl Sync for BatchSummary
impl Unpin for BatchSummary
impl UnsafeUnpin for BatchSummary
impl UnwindSafe for BatchSummary
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