Trait ethcore_ipc_nano::IpcInterface
[−]
[src]
pub trait IpcInterface: IpcConfig {
fn dispatch<R>(&self, r: &mut R) -> Vec<u8> where R: Read;
fn dispatch_buf(&self, method_num: u16, buf: &[u8]) -> Vec<u8>;
}
Allows implementor to be attached to generic worker and dispatch rpc requests over IPC
Required Methods
fn dispatch<R>(&self, r: &mut R) -> Vec<u8> where R: Read
reads the message from io, dispatches the call and returns serialized result
fn dispatch_buf(&self, method_num: u16, buf: &[u8]) -> Vec<u8>
deserializes the payload from buffer, dispatches invoke and returns serialized result (for non-blocking io)