pub enum AicError {
Show 18 variants
ParameterOutOfRange,
NotInitialized,
AudioConfigUnsupported,
AudioConfigMismatch,
ProcessingNotAllowed,
Internal,
LicenseFormatInvalid,
LicenseVersionUnsupported,
LicenseExpired,
TokenUpdateUnsupported,
ModelInvalid,
ModelVersionUnsupported,
ModelTypeUnsupported,
FilePathInvalid,
FileSystemError,
ModelDataUnaligned,
ModelDownload(String),
Unknown(Type),
}Expand description
Error type for AIC SDK operations.
Variants§
ParameterOutOfRange
Parameter value is outside the acceptable range. Check documentation for valid values.
NotInitialized
Handle must be initialized before calling this operation.
AudioConfigUnsupported
Audio configuration (sample_rate, block_size) is not supported by the model
AudioConfigMismatch
Audio block configuration differs from the one provided during initialization
ProcessingNotAllowed
Processing is not allowed because the SDK key was not authorized or usage reporting failed.
Internal
Internal error occurred. Contact support.
LicenseFormatInvalid
License key format is invalid or corrupted. Verify the key was copied correctly.
LicenseVersionUnsupported
License version is not compatible with the SDK version. Update SDK or contact support.
LicenseExpired
License key has expired. Renew your license to continue.
TokenUpdateUnsupported
Updating the token is only supported when both the original and new keys are JWT-form licenses.
ModelInvalid
The model file is invalid or corrupted. Verify the file is correct.
ModelVersionUnsupported
The model file version is not compatible with this SDK version.
ModelTypeUnsupported
The model type is not supported by the requested API.
FilePathInvalid
The file path is invalid.
FileSystemError
The model file cannot be opened due to a filesystem error. Verify that the file exists.
ModelDataUnaligned
The model data is not aligned to 64 bytes.
ModelDownload(String)
Model download error.
Unknown(Type)
Unknown error code.
Trait Implementations§
impl Eq for AicError
Source§impl Error for AicError
impl Error for AicError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
impl StructuralPartialEq for AicError
Auto Trait Implementations§
impl Freeze for AicError
impl RefUnwindSafe for AicError
impl Send for AicError
impl Sync for AicError
impl Unpin for AicError
impl UnsafeUnpin for AicError
impl UnwindSafe for AicError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more