Struct yar_client::YarClient [] [src]

pub struct YarClient { /* fields omitted */ }

Methods

impl YarClient
[src]

[src]

Call a Yar method parameters can only use string slice Arc, and it will be return a [Response]: struct.Response.html value. Example:

   use yar_client::*;
   let mut client = Builder::default()
   .set_url("http://10limi.com/rpc.php").unwrap()
   .set_opt(YAR_OPT_PACKAGER,"JSON").unwrap()
   .set_opt(YAR_OPT_CONNECT_TIMEOUT, 1).unwrap()
   .set_opt(YAR_OPT_TIMEOUT, 3).unwrap()
   .build().unwrap();

    let a = client.call("test",vec!["1".to_string(),"2".to_string()]);

Trait Implementations

Auto Trait Implementations

impl !Send for YarClient

impl !Sync for YarClient