pub struct TranslationLogger { /* private fields */ }Expand description
Translation logging helper
Implementations§
Source§impl TranslationLogger
impl TranslationLogger
pub fn new(translation_id: impl ToString) -> Self
pub fn start(&self, source_lang: &str, target_format: &str, lines: usize)
pub fn progress(&self, step: &str, progress_percent: f64)
pub fn complete(&self, duration_ms: f64, output_size_bytes: usize)
pub fn failed(&self, error_category: &str, error_message: &str)
Auto Trait Implementations§
impl Freeze for TranslationLogger
impl RefUnwindSafe for TranslationLogger
impl Send for TranslationLogger
impl Sync for TranslationLogger
impl Unpin for TranslationLogger
impl UnsafeUnpin for TranslationLogger
impl UnwindSafe for TranslationLogger
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