Enum thrift::ApplicationErrorKind
source · #[non_exhaustive]pub enum ApplicationErrorKind {
Unknown = 0,
UnknownMethod = 1,
InvalidMessageType = 2,
WrongMethodName = 3,
BadSequenceId = 4,
MissingResult = 5,
InternalError = 6,
ProtocolError = 7,
InvalidTransform = 8,
InvalidProtocol = 9,
UnsupportedClientType = 10,
}
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 = 0
Catch-all application error.
UnknownMethod = 1
Made service call to an unknown service method.
InvalidMessageType = 2
Received an unknown Thrift message type. That is, not one of the
thrift::protocol::TMessageType
variants.
WrongMethodName = 3
Method name in a service reply does not match the name of the receiving service method.
BadSequenceId = 4
Received an out-of-order Thrift message.
MissingResult = 5
Service reply is missing required fields.
InternalError = 6
Auto-generated code failed unexpectedly.
ProtocolError = 7
Thrift protocol error. When possible use Error::ProtocolError
with a
specific ProtocolErrorKind
instead.
InvalidTransform = 8
Unknown. Included only for compatibility with existing Thrift implementations.
InvalidProtocol = 9
Thrift endpoint requested, or is using, an unsupported encoding.
UnsupportedClientType = 10
Thrift endpoint requested, or is using, an unsupported auto-generated client type.
Trait Implementations§
source§impl Clone for ApplicationErrorKind
impl Clone for ApplicationErrorKind
source§fn clone(&self) -> ApplicationErrorKind
fn clone(&self) -> ApplicationErrorKind
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ApplicationErrorKind
impl Debug for ApplicationErrorKind
source§impl PartialEq for ApplicationErrorKind
impl PartialEq for ApplicationErrorKind
source§impl TryFrom<i32> for ApplicationErrorKind
impl TryFrom<i32> for ApplicationErrorKind
impl Copy for ApplicationErrorKind
impl Eq for ApplicationErrorKind
impl StructuralPartialEq for ApplicationErrorKind
Auto Trait Implementations§
impl Freeze for ApplicationErrorKind
impl RefUnwindSafe for ApplicationErrorKind
impl Send for ApplicationErrorKind
impl Sync for ApplicationErrorKind
impl Unpin for ApplicationErrorKind
impl UnwindSafe for ApplicationErrorKind
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)