#[non_exhaustive]pub enum AddonErrorKind {
VadModelLoad,
VadInference,
VadInvalidConfig,
VadInvalidFormat,
VadResample,
VadReset,
FlacIo,
FlacUnsupported,
FlacEncoder,
}Expand description
Addon failure identity, independent of native or model diagnostic messages.
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.
VadModelLoad
VAD model loading failed; recreate the VAD session and retry.
VadInference
VAD inference failed; reset the VAD session and retry.
VadInvalidConfig
VAD configuration is invalid; correct the settings and retry.
VadInvalidFormat
VAD input format is invalid; use a sample rate within 8000..=192000 Hz and nonzero channels.
VadResample
VAD resampling failed; reset the VAD session and retry.
VadReset
VAD reset failed; recreate the VAD session and retry.
FlacIo
FLAC output I/O failed; check output access and available space, then retry.
FlacUnsupported
FLAC input is unsupported; correct the format and writer state, then retry.
FlacEncoder
FLAC encoding failed; recreate the writer and retry.
Implementations§
Source§impl AddonErrorKind
impl AddonErrorKind
Sourcepub fn error_kind(self) -> ErrorKind
pub fn error_kind(self) -> ErrorKind
Root core classification.
Sourcepub fn explanation(self) -> &'static str
pub fn explanation(self) -> &'static str
Safe library-owned explanation and recovery guidance.
Trait Implementations§
Source§impl Clone for AddonErrorKind
impl Clone for AddonErrorKind
impl Copy for AddonErrorKind
Source§impl Debug for AddonErrorKind
impl Debug for AddonErrorKind
impl Eq for AddonErrorKind
Source§impl PartialEq for AddonErrorKind
impl PartialEq for AddonErrorKind
impl StructuralPartialEq for AddonErrorKind
Auto Trait Implementations§
impl Freeze for AddonErrorKind
impl RefUnwindSafe for AddonErrorKind
impl Send for AddonErrorKind
impl Sync for AddonErrorKind
impl Unpin for AddonErrorKind
impl UnsafeUnpin for AddonErrorKind
impl UnwindSafe for AddonErrorKind
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