pub struct OutgoingRequest {
pub id: RequestId,
pub method: String,
pub params: Value,
pub response_tx: Sender<Result<Value>>,
}Expand description
Outgoing request to be sent to the client
Fields§
§id: RequestIdThe JSON-RPC request ID
method: StringThe method name
params: ValueThe request parameters as JSON
response_tx: Sender<Result<Value>>Channel to send the response back
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OutgoingRequest
impl !RefUnwindSafe for OutgoingRequest
impl Send for OutgoingRequest
impl Sync for OutgoingRequest
impl Unpin for OutgoingRequest
impl !UnwindSafe for OutgoingRequest
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