pub struct Client { /* private fields */ }
Implementations§
Source§impl Client
impl Client
pub fn new<C, S>(tag: S, channel: C) -> Self
pub async fn send<P>(
&mut self,
method: &str,
params: P,
) -> RPCResult<Responser<Timeout>>where
P: Serialize,
pub async fn call<P, R>(&mut self, method: &str, params: P) -> RPCResult<R>
pub async fn send_with_timer<P, T>( &mut self, method: &str, params: P, timer: T, ) -> RPCResult<Responser<T>>
pub async fn call_with_timer<P, T, R>( &mut self, method: &str, params: P, timer: T, ) -> RPCResult<R>
pub async fn notification<P>(
&mut self,
method: &str,
params: P,
) -> RPCResult<()>where
P: Serialize,
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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