pub struct ApplicationException {
pub message: String,
pub type_: ApplicationExceptionErrorCode,
}
Expand description
ApplicationException is not actually an error type in the Rust sense, but a Thrift-specific serializable
Fields§
§message: String
§type_: ApplicationExceptionErrorCode
Implementations§
source§impl ApplicationException
impl ApplicationException
pub fn new(type_: ApplicationExceptionErrorCode, message: String) -> Self
pub fn unimplemented_method(handler: &str, method: &str) -> Self
sourcepub fn unknown_method() -> Self
pub fn unknown_method() -> Self
Indicator that this service doesn’t have the method, but another might
pub fn missing_arg(method: &str, arg: &str) -> Self
pub fn missing_field(method: &str, field: &str) -> Self
pub fn invalid_protocol(badproto: ProtocolID) -> Self
Trait Implementations§
source§impl Clone for ApplicationException
impl Clone for ApplicationException
source§fn clone(&self) -> ApplicationException
fn clone(&self) -> ApplicationException
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ApplicationException
impl Debug for ApplicationException
source§impl Default for ApplicationException
impl Default for ApplicationException
source§fn default() -> ApplicationException
fn default() -> ApplicationException
Returns the “default value” for a type. Read more
source§impl<P> Deserialize<P> for ApplicationExceptionwhere
P: ProtocolReader,
impl<P> Deserialize<P> for ApplicationExceptionwhere
P: ProtocolReader,
source§impl ExceptionInfo for ApplicationException
impl ExceptionInfo for ApplicationException
source§impl From<ApplicationException> for Error
impl From<ApplicationException> for Error
source§fn from(exn: ApplicationException) -> Error
fn from(exn: ApplicationException) -> Error
Converts to this type from the input type.
source§impl From<ApplicationException> for NonthrowingFunctionError
impl From<ApplicationException> for NonthrowingFunctionError
source§fn from(ae: ApplicationException) -> Self
fn from(ae: ApplicationException) -> Self
Converts to this type from the input type.
source§impl Hash for ApplicationException
impl Hash for ApplicationException
source§impl Ord for ApplicationException
impl Ord for ApplicationException
source§fn cmp(&self, other: &ApplicationException) -> Ordering
fn cmp(&self, other: &ApplicationException) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ApplicationException> for ApplicationException
impl PartialEq<ApplicationException> for ApplicationException
source§fn eq(&self, other: &ApplicationException) -> bool
fn eq(&self, other: &ApplicationException) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ApplicationException> for ApplicationException
impl PartialOrd<ApplicationException> for ApplicationException
source§fn partial_cmp(&self, other: &ApplicationException) -> Option<Ordering>
fn partial_cmp(&self, other: &ApplicationException) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more