Struct ClientHandle
pub struct ClientHandle { /* private fields */ }Implementations§
§impl ClientHandle
impl ClientHandle
pub async fn request<T: JsonRPCMsgT, R: DeserializeOwned + Send + 'static>( &self, msg: T, ) -> Result<R, Error>
pub async fn subscribe<T: JsonRPCSubscriptionMsgT + 'static, R: DeserializeOwned + Send + 'static>( &self, msg: T, ) -> Result<Subscription<R>, Error>
Trait Implementations§
§impl Clone for ClientHandle
impl Clone for ClientHandle
§fn clone(&self) -> ClientHandle
fn clone(&self) -> ClientHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ClientHandle
impl !RefUnwindSafe for ClientHandle
impl Send for ClientHandle
impl Sync for ClientHandle
impl Unpin for ClientHandle
impl !UnwindSafe for ClientHandle
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