extern crate intercom; use intercom::*; #[com_interface( com_iid = "00000000-0000-0000-0000-000000000000", raw_iid = "00000000-0000-0000-0000-000000000001")] pub trait Foo { fn static_method(a: u16, b: i16); fn simple_method(&self); fn arg_method(&self, a: u16); fn simple_result_method(&self) -> u16; fn com_result_method(&self) -> ComResult; fn rust_result_method(&self) -> Result; fn complete_method(&mut self, a: u16, b: i16) -> ComResult; fn string_method(&self, msg: String) -> String; fn comitf_method(&self, itf: ComItf) -> ComResult>; // Should be VARIANT_BOOL in Automation interface. fn bool_method(&self, input : bool) -> ComResult; fn variant_method(&self, input : Variant) -> ComResult; }