pub struct ApplicationException {
pub message: String,
pub type_: ApplicationExceptionErrorCode,
}
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 Display for ApplicationException
impl Display for ApplicationException
source§impl Error for ApplicationException
impl Error for ApplicationException
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl ExceptionInfo for ApplicationException
impl ExceptionInfo for ApplicationException
source§impl From<ApplicationException> for NonthrowingFunctionError
impl From<ApplicationException> for NonthrowingFunctionError
source§fn from(source: ApplicationException) -> Self
fn from(source: 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 for ApplicationException
impl PartialEq 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 for ApplicationException
impl PartialOrd 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 moresource§impl ResultInfo for ApplicationException
impl ResultInfo for ApplicationException
fn result_type(&self) -> ResultType
source§impl<P> Serialize<P> for ApplicationExceptionwhere
P: ProtocolWriter,
impl<P> Serialize<P> for ApplicationExceptionwhere
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§
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