Struct xapirpc::XapiRpc
[−]
[src]
pub struct XapiRpc { /* fields omitted */ }
Xapi RPC client. Makes sure of creating, holding and closing the sessions.
Methods
impl XapiRpc
[src]
fn new(config: &Config) -> Result<Self, Box<Error + Send + Sync>>
[src]
Prepare a xapi session using the login informations from config.
fn call(
&self,
class: &str,
method: &str,
args: Vec<Value>
) -> Result<Value, Box<Error + Send + Sync>>
[src]
&self,
class: &str,
method: &str,
args: Vec<Value>
) -> Result<Value, Box<Error + Send + Sync>>
Perform a Xapi RPC call for class.method using args as arguments