pub struct RpcClient { /* private fields */ }Implementations§
Source§impl RpcClient
impl RpcClient
pub fn new() -> (Self, Receiver<Message>)
pub async fn send_request( &self, method: impl ToString, params: Option<impl Serialize>, ) -> Result<Value, Error>
pub async fn send_notification( &self, method: impl ToString, params: Option<impl Serialize>, ) -> Result<(), Error>
pub async fn handle_response(&self, response: Response)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RpcClient
impl !RefUnwindSafe for RpcClient
impl Send for RpcClient
impl Sync for RpcClient
impl Unpin for RpcClient
impl !UnwindSafe for RpcClient
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