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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.