Struct thrift::ApplicationError
source · [−]pub struct ApplicationError {
pub kind: ApplicationErrorKind,
pub message: String,
}
Expand description
Information about errors in auto-generated code or in user-implemented service handlers.
Fields
kind: ApplicationErrorKind
Application error variant.
If a specific ApplicationErrorKind
does not apply use
ApplicationErrorKind::Unknown
.
message: String
Human-readable error message.
Implementations
sourceimpl ApplicationError
impl ApplicationError
sourcepub fn new<S: Into<String>>(
kind: ApplicationErrorKind,
message: S
) -> ApplicationError
pub fn new<S: Into<String>>(
kind: ApplicationErrorKind,
message: S
) -> ApplicationError
Create a new ApplicationError
.
Trait Implementations
sourceimpl Debug for ApplicationError
impl Debug for ApplicationError
sourceimpl Display for ApplicationError
impl Display for ApplicationError
sourceimpl From<ApplicationError> for Error
impl From<ApplicationError> for Error
sourcefn from(e: ApplicationError) -> Self
fn from(e: ApplicationError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ApplicationError> for ApplicationError
impl PartialEq<ApplicationError> for ApplicationError
sourcefn eq(&self, other: &ApplicationError) -> bool
fn eq(&self, other: &ApplicationError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ApplicationError) -> bool
fn ne(&self, other: &ApplicationError) -> bool
This method tests for !=
.
impl Eq for ApplicationError
impl StructuralEq for ApplicationError
impl StructuralPartialEq for ApplicationError
Auto Trait Implementations
impl RefUnwindSafe for ApplicationError
impl Send for ApplicationError
impl Sync for ApplicationError
impl Unpin for ApplicationError
impl UnwindSafe for ApplicationError
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