Struct jsonrpc::EndpointOutput
[−]
[src]
pub struct EndpointOutput { /* fields omitted */ }
A JSON-RPC Server-role than can send responses to requests. TODO: review and clarify shutdown semantics
Methods
impl EndpointOutput
[src]
fn start_with(output_agent: OutputAgent) -> EndpointOutput
fn is_shutdown(&self) -> bool
fn shutdown(&self)
fn next_id(&self) -> Id
impl EndpointOutput
[src]
fn send_request<PARAMS: Serialize, RET: Deserialize, RET_ERROR: Deserialize>(&mut self,
method_name: &str,
params: PARAMS)
-> GResult<RequestFuture<RET, RET_ERROR>>
method_name: &str,
params: PARAMS)
-> GResult<RequestFuture<RET, RET_ERROR>>
Send a (non-notification) request
fn send_notification<PARAMS: Serialize>(&self,
method_name: &str,
params: PARAMS)
-> GResult<()>
method_name: &str,
params: PARAMS)
-> GResult<()>
Send a notification
fn write_request<PARAMS: Serialize>(&self,
id: Option<Id>,
method_name: &str,
params: PARAMS)
-> GResult<()>
id: Option<Id>,
method_name: &str,
params: PARAMS)
-> GResult<()>
fn handle_incoming_response(&mut self, response: Response)
Handle a well-formed incoming JsonRpc request object
Trait Implementations
impl Clone for EndpointOutput
[src]
fn clone(&self) -> EndpointOutput
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more