Enum fbthrift_git::ResultType
source · pub enum ResultType {
Return,
Error,
Exception,
}
Expand description
Classify a result from a specific method call.
Variants§
Return
A successful return
Error
A declared exception
Exception
Some other exception (eg ApplicationException)
Implementations§
source§impl ResultType
impl ResultType
pub fn message_type(&self) -> MessageType
Trait Implementations§
source§impl Clone for ResultType
impl Clone for ResultType
source§fn clone(&self) -> ResultType
fn clone(&self) -> ResultType
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 ResultType
impl Debug for ResultType
source§impl PartialEq for ResultType
impl PartialEq for ResultType
source§fn eq(&self, other: &ResultType) -> bool
fn eq(&self, other: &ResultType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ResultType
impl Eq for ResultType
impl StructuralEq for ResultType
impl StructuralPartialEq for ResultType
Auto Trait Implementations§
impl RefUnwindSafe for ResultType
impl Send for ResultType
impl Sync for ResultType
impl Unpin 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