Struct krpc::rpc::Rpc
[−]
[src]
pub struct Rpc { pub id: Id, // some fields omitted }
Fields
id: Id
Methods
impl Rpc
[src]
fn new<T: ToSocketAddrs>(address: T, name: &str) -> Result<Self, ConnectionErr>
fn send(&mut self, r: Request) -> Result<(), ProtobufError>
fn receive<'a>(&'a mut self) -> Result<Option<Vec<u8>>, TransceiverError>
fn invoke(
&mut self,
service: String,
procedure: String,
args: Vec<Vec<u8>>
) -> Result<Option<Vec<u8>>, TransceiverError>
&mut self,
service: String,
procedure: String,
args: Vec<Vec<u8>>
) -> Result<Option<Vec<u8>>, TransceiverError>