Trait tiny_rpc::rpc::RpcFrame[][src]

pub trait RpcFrame<T>: Sized + Send + 'static {
    fn from_parts(id: RequestId, data: T) -> Result<Self>;
fn get_id(&self) -> RequestId;
fn get_data(self) -> Result<T>; }

Required methods

fn from_parts(id: RequestId, data: T) -> Result<Self>[src]

fn get_id(&self) -> RequestId[src]

fn get_data(self) -> Result<T>[src]

Loading content...

Implementations on Foreign Types

impl<T: Sized + Send + 'static> RpcFrame<T> for (RequestId, T)[src]

Loading content...

Implementors

Loading content...