Struct station::rpc::RpcClient[][src]

pub struct RpcClient<T, U> { /* fields omitted */ }
Expand description

The RPC client sends data of type T to a server and expects a response of type U.

It is extremely important that the types on the client and server match, else the RPC calls will likely fail.

Implementations

Create an RPC client pointing to a TCP socket address.

Create an RPC client pointing to a Unix socket address.

Call the RPC and return the response.

If the types used to initialize the RPC client differ from the RPC server, some very cryptic errors can occur. Since bincode is used for serialization, the type of error can differ depending on where the deserialization occurs. In any case, it’s important to make sure types are matched properly when creating RPC servers and clients.

Check if the corresponding RPC server is online.

Wait indefinitely for the RPC server to come online.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.