#[non_exhaustive]pub enum EngineFamily {
Whisper,
Qwen3Asr,
}Expand description
Which engine family an crate::adapter::EngineAdapter represents.
Variants are matched by EngineFamily::from_config for the
canonical config spelling. The enum is #[non_exhaustive] so
adding a new family (parakeet, voxtral, …) does not break
downstream pattern matches — but consumers that exhaustively
match today must add a wildcard arm.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl EngineFamily
impl EngineFamily
Sourcepub fn from_config(value: &str) -> Option<Self>
pub fn from_config(value: &str) -> Option<Self>
Parse the canonical config spelling. Accepts both
"qwen3-asr" and the legacy "qwen3asr" /
"qwen3_asr" aliases for ergonomics.
Sourcepub fn as_config(self) -> &'static str
pub fn as_config(self) -> &'static str
Canonical config spelling (matches voxora-cli --engine).
Sourcepub fn crate_label(self) -> &'static str
pub fn crate_label(self) -> &'static str
Short crate-label that identifies the voxora-* crate.
Trait Implementations§
Source§impl Clone for EngineFamily
impl Clone for EngineFamily
Source§fn clone(&self) -> EngineFamily
fn clone(&self) -> EngineFamily
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 moreimpl Copy for EngineFamily
Source§impl Debug for EngineFamily
impl Debug for EngineFamily
Source§impl Display for EngineFamily
impl Display for EngineFamily
impl Eq for EngineFamily
Source§impl FromStr for EngineFamily
impl FromStr for EngineFamily
Source§impl Hash for EngineFamily
impl Hash for EngineFamily
Source§impl PartialEq for EngineFamily
impl PartialEq for EngineFamily
impl StructuralPartialEq for EngineFamily
Auto Trait Implementations§
impl Freeze for EngineFamily
impl RefUnwindSafe for EngineFamily
impl Send for EngineFamily
impl Sync for EngineFamily
impl Unpin for EngineFamily
impl UnsafeUnpin for EngineFamily
impl UnwindSafe for EngineFamily
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