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