Enum oc2_hlapi::response::RpcResponse
source · pub enum RpcResponse<T: ApiCall> {
Response(T::Response),
Error(String),
}Variants§
Trait Implementations§
source§impl<T: Clone + ApiCall> Clone for RpcResponse<T>
impl<T: Clone + ApiCall> Clone for RpcResponse<T>
source§fn clone(&self) -> RpcResponse<T>
fn clone(&self) -> RpcResponse<T>
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<'de, T: ApiCall> Deserialize<'de> for RpcResponse<T>where
T::Response: Deserialize<'de>,
impl<'de, T: ApiCall> Deserialize<'de> for RpcResponse<T>where
T::Response: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T: ApiCall> From<RpcResponse<T>> for Result<T::Response, String>
impl<T: ApiCall> From<RpcResponse<T>> for Result<T::Response, String>
source§fn from(value: RpcResponse<T>) -> Self
fn from(value: RpcResponse<T>) -> Self
Converts to this type from the input type.
source§impl<T: Ord + ApiCall> Ord for RpcResponse<T>
impl<T: Ord + ApiCall> Ord for RpcResponse<T>
source§fn cmp(&self, other: &RpcResponse<T>) -> Ordering
fn cmp(&self, other: &RpcResponse<T>) -> 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<T: PartialEq + ApiCall> PartialEq for RpcResponse<T>
impl<T: PartialEq + ApiCall> PartialEq for RpcResponse<T>
source§fn eq(&self, other: &RpcResponse<T>) -> bool
fn eq(&self, other: &RpcResponse<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<T: PartialOrd + ApiCall> PartialOrd for RpcResponse<T>where
T::Response: PartialOrd,
impl<T: PartialOrd + ApiCall> PartialOrd for RpcResponse<T>where
T::Response: PartialOrd,
source§fn partial_cmp(&self, other: &RpcResponse<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &RpcResponse<T>) -> 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 moreimpl<T: Eq + ApiCall> Eq for RpcResponse<T>
impl<T: ApiCall> StructuralPartialEq for RpcResponse<T>
Auto Trait Implementations§
impl<T> Freeze for RpcResponse<T>
impl<T> RefUnwindSafe for RpcResponse<T>
impl<T> Send for RpcResponse<T>
impl<T> Sync for RpcResponse<T>
impl<T> Unpin for RpcResponse<T>
impl<T> UnwindSafe for RpcResponse<T>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)