pub enum RequestResult<RET, RET_ERROR> {
MethodResult(MethodResult<RET, RET_ERROR>),
RequestError(RequestError),
}
Variants§
MethodResult(MethodResult<RET, RET_ERROR>)
RequestError(RequestError)
Implementations§
Source§impl<RET, RET_ERROR> RequestResult<RET, RET_ERROR>
impl<RET, RET_ERROR> RequestResult<RET, RET_ERROR>
pub fn unwrap_result(self) -> MethodResult<RET, RET_ERROR>
pub fn unwrap_error(self) -> RequestError
Trait Implementations§
Source§impl<RET: Deserialize, RET_ERROR: Deserialize> From<ResponseResult> for RequestResult<RET, RET_ERROR>
impl<RET: Deserialize, RET_ERROR: Deserialize> From<ResponseResult> for RequestResult<RET, RET_ERROR>
Source§fn from(response_result: ResponseResult) -> Self
fn from(response_result: ResponseResult) -> Self
Converts to this type from the input type.
Source§impl<RET: PartialEq, RET_ERROR: PartialEq> PartialEq for RequestResult<RET, RET_ERROR>
impl<RET: PartialEq, RET_ERROR: PartialEq> PartialEq for RequestResult<RET, RET_ERROR>
Source§fn eq(&self, other: &RequestResult<RET, RET_ERROR>) -> bool
fn eq(&self, other: &RequestResult<RET, RET_ERROR>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<RET, RET_ERROR> StructuralPartialEq for RequestResult<RET, RET_ERROR>
Auto Trait Implementations§
impl<RET, RET_ERROR> Freeze for RequestResult<RET, RET_ERROR>
impl<RET, RET_ERROR> RefUnwindSafe for RequestResult<RET, RET_ERROR>where
RET: RefUnwindSafe,
RET_ERROR: RefUnwindSafe,
impl<RET, RET_ERROR> Send for RequestResult<RET, RET_ERROR>
impl<RET, RET_ERROR> Sync for RequestResult<RET, RET_ERROR>
impl<RET, RET_ERROR> Unpin for RequestResult<RET, RET_ERROR>
impl<RET, RET_ERROR> UnwindSafe for RequestResult<RET, RET_ERROR>where
RET: UnwindSafe,
RET_ERROR: UnwindSafe,
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