Struct ruroonga_client::GQTPRequest
[−]
[src]
pub struct GQTPRequest<'a> { // some fields omitted }
Request GQTP protocol over TcpStream
Methods
impl<'a> GQTPRequest<'a>
[src]
fn new() -> GQTPRequest<'a>
Create a GQTP client.
fn with_addr(self, addr: &'a str) -> GQTPRequest<'a>
Set host address for GQTP server.
Examples
extern crate ruroonga_client as groonga; groonga::GQTPRequest::new().with_addr("127.0.0.1:20043");
fn call<C>(&self, command: C) -> Result<String, GQTPError> where C: AsRef<str>
Send request and Receive response.
Trait Implementations
impl<'a> Default for GQTPRequest<'a>
[src]
fn default() -> GQTPRequest<'a>
Returns the "default value" for a type. Read more