system_api/bindings/client/
org_chromium_vtpm.rs

1// This code was autogenerated with `dbus-codegen-rust -s -m None`, see https://github.com/diwic/dbus-rs
2use dbus as dbus;
3#[allow(unused_imports)]
4use dbus::arg;
5use dbus::blocking;
6
7pub trait OrgChromiumVtpm {
8    fn send_command(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
9}
10
11impl<'a, T: blocking::BlockingSender, C: ::std::ops::Deref<Target=T>> OrgChromiumVtpm for blocking::Proxy<'a, C> {
12
13    fn send_command(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
14        self.method_call("org.chromium.Vtpm", "SendCommand", (request, ))
15            .and_then(|r: (Vec<u8>, )| Ok(r.0, ))
16    }
17}