Struct station::rpc::RpcServer[][src]

pub struct RpcServer { /* fields omitted */ }
Expand description

The RPC server listens for incoming messages of type T, processes them, and returns a result containing bytes that can be deserialized to the type U.

Implementations

Create an RPC server bound to a TCP port.

Args:

  • name: A name to refer to the RPC server.
  • port: The TCP port to bind the server to.
  • callback: The function to call on incoming data.

Create an RPC server bound to a Unix stream socket.

Args:

  • name: A name to refer to the RPC server.
  • path: The unix socket path to bind the server to.
  • callback: The function to call on incoming data.

Check if the RPC server is running.

Stop the RPC server.

Trait Implementations

Executes the destructor for this type. Read more

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.