pub struct RpcClient { /* private fields */ }Implementations
sourceimpl 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 !RefUnwindSafe for RpcClient
impl Send for RpcClient
impl Sync for RpcClient
impl Unpin for RpcClient
impl !UnwindSafe for RpcClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more