pub struct CallSuccess {
pub id: RpcId,
pub method: String,
pub value: Value,
}Expand description
The successful response back from a rpc_router.call... functions.
NOTE: CallSuccess & CallError
are not designed to be the JSON-RPC Response
or Error, but to provide the necessary context
to build those, as well as the useful method name
context for tracing/login.
Fields§
§id: RpcId§method: String§value: ValueTrait Implementations§
Source§impl Clone for CallSuccess
impl Clone for CallSuccess
Source§fn clone(&self) -> CallSuccess
fn clone(&self) -> CallSuccess
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 CallSuccess
impl Debug for CallSuccess
Source§impl From<CallSuccess> for RpcResponse
impl From<CallSuccess> for RpcResponse
Source§fn from(call_success: CallSuccess) -> Self
fn from(call_success: CallSuccess) -> Self
Converts a successful router CallSuccess into a JSON-RPC RpcResponse::Success.
Auto Trait Implementations§
impl Freeze for CallSuccess
impl RefUnwindSafe for CallSuccess
impl Send for CallSuccess
impl Sync for CallSuccess
impl Unpin for CallSuccess
impl UnwindSafe for CallSuccess
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