pub struct TransportMessage {
pub message: JsonRpcMessage,
pub response_tx: Option<Sender<Result<JsonRpcMessage, Error>>>,
}
Expand description
A message that can be sent through the transport
Fields§
§message: JsonRpcMessage
The JSON-RPC message to send
response_tx: Option<Sender<Result<JsonRpcMessage, Error>>>
Channel to receive the response on (None for notifications)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TransportMessage
impl !RefUnwindSafe for TransportMessage
impl Send for TransportMessage
impl Sync for TransportMessage
impl Unpin for TransportMessage
impl !UnwindSafe for TransportMessage
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