pub enum CancellationErrorCode {
NoError,
AuthenticationFailure,
BadRequest,
TooManyRequests,
Forbidden,
ConnectionFailure,
ServiceTimeout,
ServiceError,
ServiceUnavailable,
RuntimeError,
}
Expand description
CancellationErrorCode defines error code in case that CancellationReason is Error.
Variants
NoError
No error. If CancellationReason is EndOfStream, CancellationErrorCode is set to NoError.
AuthenticationFailure
Indicates an authentication error. An authentication error occurs if subscription key or authorization token is invalid, expired, or does not match the region being used.
BadRequest
Indicates that one or more recognition parameters are invalid or the audio format is not supported.
TooManyRequests
Indicates that the number of parallel requests exceeded the number of allowed concurrent transcriptions for the subscription.
Forbidden
Indicates that the free subscription used by the request ran out of quota.
ConnectionFailure
Indicates a connection error.
ServiceTimeout
Indicates a time-out error when waiting for response from service.
ServiceError
Indicates that an error is returned by the service.
ServiceUnavailable
Indicates that the service is currently unavailable.
RuntimeError
Indicates an unexpected runtime error.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CancellationErrorCode
impl Send for CancellationErrorCode
impl Sync for CancellationErrorCode
impl Unpin for CancellationErrorCode
impl UnwindSafe for CancellationErrorCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more