pub enum ResultType {
Success,
ClientError,
ServiceError,
}Expand description
The type of the result.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ResultType
impl Clone for ResultType
Source§fn clone(&self) -> ResultType
fn clone(&self) -> ResultType
Returns a duplicate 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 ResultType
impl Debug for ResultType
Source§impl Display for ResultType
impl Display for ResultType
Source§impl Error for ResultType
impl Error for ResultType
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 ErrorDiagnostic for ResultType
impl ErrorDiagnostic for ResultType
Source§fn typ(&self) -> ResultType
fn typ(&self) -> ResultType
Returns the classification of the result (e.g. success, client error, service error).
Source§fn signature(&self) -> &'static str
fn signature(&self) -> &'static str
Returns a stable identifier for the specific error classification. Read more
Source§impl Hash for ResultType
impl Hash for ResultType
Source§impl PartialEq for ResultType
impl PartialEq for ResultType
impl Copy for ResultType
impl Eq for ResultType
impl StructuralPartialEq for ResultType
Auto Trait Implementations§
impl Freeze for ResultType
impl RefUnwindSafe for ResultType
impl Send for ResultType
impl Sync for ResultType
impl Unpin for ResultType
impl UnsafeUnpin for ResultType
impl UnwindSafe for ResultType
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