xref: /aosp_15_r20/external/crosvm/system_api/src/bindings/client/org_chromium_vtpm.rs (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
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