pub struct RpcMessage {
pub method: String,
pub params: Params,
pub sender: Sender<Result<Value, Error>>,
}Expand description
A message sent to the RpcClient. This is public so that
the derive crate can generate a client.
Fields§
§method: StringThe rpc method name.
params: ParamsThe rpc method parameters.
sender: Sender<Result<Value, Error>>The oneshot channel to send the result of the rpc call to.
Auto Trait Implementations§
impl Freeze for RpcMessage
impl !RefUnwindSafe for RpcMessage
impl Send for RpcMessage
impl Sync for RpcMessage
impl Unpin for RpcMessage
impl !UnwindSafe for RpcMessage
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