Enum thrift::ApplicationErrorKind
source · [−]#[non_exhaustive]
pub enum ApplicationErrorKind {
Unknown,
UnknownMethod,
InvalidMessageType,
WrongMethodName,
BadSequenceId,
MissingResult,
InternalError,
ProtocolError,
InvalidTransform,
InvalidProtocol,
UnsupportedClientType,
}
Expand description
Auto-generated or user-implemented code error categories.
This list may grow, and it is not recommended to match against it.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
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
sourceimpl Clone for ApplicationErrorKind
impl Clone for ApplicationErrorKind
sourcefn clone(&self) -> ApplicationErrorKind
fn clone(&self) -> ApplicationErrorKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ApplicationErrorKind
impl Debug for ApplicationErrorKind
sourceimpl TryFrom<i32> for ApplicationErrorKind
impl TryFrom<i32> for ApplicationErrorKind
impl Copy for ApplicationErrorKind
impl Eq for ApplicationErrorKind
impl StructuralEq for ApplicationErrorKind
impl StructuralPartialEq for ApplicationErrorKind
Auto Trait Implementations
impl RefUnwindSafe for ApplicationErrorKind
impl Send for ApplicationErrorKind
impl Sync for ApplicationErrorKind
impl Unpin for ApplicationErrorKind
impl UnwindSafe for ApplicationErrorKind
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