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
sourceimpl 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
sourceimpl Clone for ApplicationException
impl Clone for ApplicationException
sourcefn clone(&self) -> ApplicationException
fn clone(&self) -> ApplicationException
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 ApplicationException
impl Debug for ApplicationException
sourceimpl Default for ApplicationException
impl Default for ApplicationException
sourcefn default() -> ApplicationException
fn default() -> ApplicationException
Returns the “default value” for a type. Read more
sourceimpl<P> Deserialize<P> for ApplicationException where
P: ProtocolReader,
impl<P> Deserialize<P> for ApplicationException where
P: ProtocolReader,
sourceimpl ExceptionInfo for ApplicationException
impl ExceptionInfo for ApplicationException
sourceimpl From<ApplicationException> for Error
impl From<ApplicationException> for Error
sourcefn from(exn: ApplicationException) -> Error
fn from(exn: ApplicationException) -> Error
Converts to this type from the input type.
sourceimpl From<ApplicationException> for NonthrowingFunctionError
impl From<ApplicationException> for NonthrowingFunctionError
sourcefn from(ae: ApplicationException) -> Self
fn from(ae: ApplicationException) -> Self
Converts to this type from the input type.
sourceimpl Hash for ApplicationException
impl Hash for ApplicationException
sourceimpl Ord for ApplicationException
impl Ord for ApplicationException
sourcefn cmp(&self, other: &ApplicationException) -> Ordering
fn cmp(&self, other: &ApplicationException) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ApplicationException> for ApplicationException
impl PartialEq<ApplicationException> for ApplicationException
sourcefn 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 ==
. Read more
sourceimpl PartialOrd<ApplicationException> for ApplicationException
impl PartialOrd<ApplicationException> for ApplicationException
sourcefn partial_cmp(&self, other: &ApplicationException) -> Option<Ordering>
fn partial_cmp(&self, other: &ApplicationException) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
sourceimpl ResultInfo for ApplicationException
impl ResultInfo for ApplicationException
fn result_type(&self) -> ResultType
sourceimpl<P> Serialize<P> for ApplicationException where
P: ProtocolWriter,
impl<P> Serialize<P> for ApplicationException where
P: ProtocolWriter,
impl Eq for ApplicationException
impl StructuralEq for ApplicationException
impl StructuralPartialEq for ApplicationException
Auto Trait Implementations
impl RefUnwindSafe for ApplicationException
impl Send for ApplicationException
impl Sync for ApplicationException
impl Unpin for ApplicationException
impl UnwindSafe for ApplicationException
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