Struct yajrc::RpcResponse
source · [−]pub struct RpcResponse<T: RpcMethod = AnyRpcMethod<'static>> {
pub id: Option<Id>,
pub result: Result<T::Response, RpcError>,
}
Fields
id: Option<Id>
result: Result<T::Response, RpcError>
Implementations
sourceimpl<T> RpcResponse<T> where
T: RpcMethod,
impl<T> RpcResponse<T> where
T: RpcMethod,
Trait Implementations
sourceimpl<T: Clone + RpcMethod> Clone for RpcResponse<T> where
T::Response: Clone,
impl<T: Clone + RpcMethod> Clone for RpcResponse<T> where
T::Response: Clone,
sourcefn clone(&self) -> RpcResponse<T>
fn clone(&self) -> RpcResponse<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'de, T> Deserialize<'de> for RpcResponse<T> where
T: RpcMethod,
T::Response: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for RpcResponse<T> where
T: RpcMethod,
T::Response: Deserialize<'de>,
sourcefn 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
sourceimpl<Method: RpcMethod> From<RpcError> for RpcResponse<Method>
impl<Method: RpcMethod> From<RpcError> for RpcResponse<Method>
Auto Trait Implementations
impl<T> RefUnwindSafe for RpcResponse<T> where
<T as RpcMethod>::Response: RefUnwindSafe,
impl<T> Send for RpcResponse<T> where
<T as RpcMethod>::Response: Send,
impl<T> Sync for RpcResponse<T> where
<T as RpcMethod>::Response: Sync,
impl<T> Unpin for RpcResponse<T> where
<T as RpcMethod>::Response: Unpin,
impl<T> UnwindSafe for RpcResponse<T> where
<T as RpcMethod>::Response: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more