pub struct BackendConfig {
pub backend: BackendType,
pub threads: usize,
pub gpu_enabled: bool,
pub quantization_level: QuantizationLevel,
}Expand description
Backend-agnostic configuration for transcription Each backend interprets these generic options based on its capabilities
Fields§
§backend: BackendTypeBackend type to use (ctranslate2, whisper_cpp, moonshine, parakeet)
threads: usizeNumber of CPU threads to use for inference Backends may adjust based on their threading model
gpu_enabled: boolWhether to enable GPU acceleration if available
- CTranslate2: CUDA support
- whisper.cpp: CUDA/Metal/Vulkan support
quantization_level: QuantizationLevelQuantization level for model weights Backends translate this to their specific quantization formats
Trait Implementations§
Source§impl Clone for BackendConfig
impl Clone for BackendConfig
Source§fn clone(&self) -> BackendConfig
fn clone(&self) -> BackendConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BackendConfig
impl Debug for BackendConfig
Source§impl Default for BackendConfig
impl Default for BackendConfig
Source§impl<'de> Deserialize<'de> for BackendConfigwhere
BackendConfig: Default,
impl<'de> Deserialize<'de> for BackendConfigwhere
BackendConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BackendConfig
impl RefUnwindSafe for BackendConfig
impl Send for BackendConfig
impl Sync for BackendConfig
impl Unpin for BackendConfig
impl UnsafeUnpin for BackendConfig
impl UnwindSafe for BackendConfig
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