pub struct BatchManager { /* private fields */ }
Expand description
批次管理器
Implementations§
Source§impl BatchManager
impl BatchManager
Sourcepub fn new(config: &TranslationConfig) -> Self
pub fn new(config: &TranslationConfig) -> Self
创建新的批次管理器
Sourcepub fn estimate_processing_time(&self, batches: &[Batch]) -> Duration
pub fn estimate_processing_time(&self, batches: &[Batch]) -> Duration
估算批次处理时间
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BatchManager
impl RefUnwindSafe for BatchManager
impl Send for BatchManager
impl Sync for BatchManager
impl Unpin for BatchManager
impl UnwindSafe for BatchManager
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