Struct jsonrpc::Endpoint [] [src]

pub struct Endpoint { /* fields omitted */ }

A JSON-RPC endpoint that can send requests (Client role), and send responses to requests (Server role).

This type has (mostly) handle semantics: it can be copied freely, used in multiple threads.

However, someone must be responsible for requesting an explicit shutdown of the Endpoint. If this is not done, the OutputAgent will panic once the last reference is dropped.

Methods

impl Endpoint
[src]

impl Endpoint
[src]

Send a (non-notification) request

Send a notification

Handle a well-formed incoming JsonRpc request object

Trait Implementations

impl Clone for Endpoint
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more