Struct jsonrpc_core_client::TypedClient [−][src]
pub struct TypedClient(_);
Expand description
Client for typed JSON RPC requests
Implementations
Create a new TypedClient
.
pub fn call_method<T, R>(
&self,
method: &str,
returns: &str,
args: T
) -> impl Future<Output = Result<R, RpcError>> where
T: Serialize,
R: DeserializeOwned,
pub fn call_method<T, R>(
&self,
method: &str,
returns: &str,
args: T
) -> impl Future<Output = Result<R, RpcError>> where
T: Serialize,
R: DeserializeOwned,
Call RPC with serialization of request and deserialization of response.
Call RPC with serialization of request only.
Subscribe with serialization of request and deserialization of response.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for TypedClient
impl Send for TypedClient
impl Sync for TypedClient
impl Unpin for TypedClient
impl !UnwindSafe for TypedClient
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V