[][src]Enum thrift::ApplicationErrorKind

pub enum ApplicationErrorKind {
    Unknown,
    UnknownMethod,
    InvalidMessageType,
    WrongMethodName,
    BadSequenceId,
    MissingResult,
    InternalError,
    ProtocolError,
    InvalidTransform,
    InvalidProtocol,
    UnsupportedClientType,
}

Auto-generated or user-implemented code error categories.

This list may grow, and it is not recommended to match against it.

Variants

Unknown

Catch-all application error.

UnknownMethod

Made service call to an unknown service method.

InvalidMessageType

Received an unknown Thrift message type. That is, not one of the thrift::protocol::TMessageType variants.

WrongMethodName

Method name in a service reply does not match the name of the receiving service method.

BadSequenceId

Received an out-of-order Thrift message.

MissingResult

Service reply is missing required fields.

InternalError

Auto-generated code failed unexpectedly.

ProtocolError

Thrift protocol error. When possible use Error::ProtocolError with a specific ProtocolErrorKind instead.

InvalidTransform

Unknown. Included only for compatibility with existing Thrift implementations.

InvalidProtocol

Thrift endpoint requested, or is using, an unsupported encoding.

UnsupportedClientType

Thrift endpoint requested, or is using, an unsupported auto-generated client type.

Trait Implementations

impl Clone for ApplicationErrorKind[src]

impl Copy for ApplicationErrorKind[src]

impl Eq for ApplicationErrorKind[src]

impl PartialEq<ApplicationErrorKind> for ApplicationErrorKind[src]

impl Debug for ApplicationErrorKind[src]

impl TryFrom<i32> for ApplicationErrorKind[src]

type Error = Error

The type returned in the event of a conversion error.

impl StructuralPartialEq for ApplicationErrorKind[src]

impl StructuralEq for ApplicationErrorKind[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]