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§
source§impl 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§
source§impl Debug for ApplicationError
impl Debug for ApplicationError
source§impl Display for ApplicationError
impl Display for ApplicationError
source§impl From<ApplicationError> for Error
impl From<ApplicationError> for Error
source§fn from(e: ApplicationError) -> Self
fn from(e: ApplicationError) -> Self
Converts to this type from the input type.
source§impl PartialEq for ApplicationError
impl PartialEq for ApplicationError
source§fn 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 ==
.impl Eq for ApplicationError
impl StructuralPartialEq for ApplicationError
Auto Trait Implementations§
impl Freeze for ApplicationError
impl RefUnwindSafe for ApplicationError
impl Send for ApplicationError
impl Sync for ApplicationError
impl Unpin for ApplicationError
impl UnwindSafe for ApplicationError
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
Mutably borrows from an owned value. Read more