Trait gio::prelude::DBusProxyExt

source ·
pub trait DBusProxyExt: 'static {
Show 32 methods // Required methods fn call<P: FnOnce(Result<Variant, Error>) + 'static>( &self, method_name: &str, parameters: Option<&Variant>, flags: DBusCallFlags, timeout_msec: i32, cancellable: Option<&impl IsA<Cancellable>>, callback: P ); fn call_future( &self, method_name: &str, parameters: Option<&Variant>, flags: DBusCallFlags, timeout_msec: i32 ) -> Pin<Box_<dyn Future<Output = Result<Variant, Error>> + 'static>>; fn call_sync( &self, method_name: &str, parameters: Option<&Variant>, flags: DBusCallFlags, timeout_msec: i32, cancellable: Option<&impl IsA<Cancellable>> ) -> Result<Variant, Error>; fn call_with_unix_fd_list<P: FnOnce(Result<(Variant, UnixFDList), Error>) + 'static>( &self, method_name: &str, parameters: Option<&Variant>, flags: DBusCallFlags, timeout_msec: i32, fd_list: Option<&impl IsA<UnixFDList>>, cancellable: Option<&impl IsA<Cancellable>>, callback: P ); fn call_with_unix_fd_list_future( &self, method_name: &str, parameters: Option<&Variant>, flags: DBusCallFlags, timeout_msec: i32, fd_list: Option<&impl IsA<UnixFDList> + Clone + 'static> ) -> Pin<Box_<dyn Future<Output = Result<(Variant, UnixFDList), Error>> + 'static>>; fn call_with_unix_fd_list_sync( &self, method_name: &str, parameters: Option<&Variant>, flags: DBusCallFlags, timeout_msec: i32, fd_list: Option<&impl IsA<UnixFDList>>, cancellable: Option<&impl IsA<Cancellable>> ) -> Result<(Variant, UnixFDList), Error>; fn cached_property(&self, property_name: &str) -> Option<Variant>; fn cached_property_names(&self) -> Vec<GString>; fn connection(&self) -> DBusConnection; fn default_timeout(&self) -> i32; fn flags(&self) -> DBusProxyFlags; fn interface_info(&self) -> Option<DBusInterfaceInfo>; fn interface_name(&self) -> GString; fn name(&self) -> Option<GString>; fn name_owner(&self) -> Option<GString>; fn object_path(&self) -> GString; fn set_cached_property(&self, property_name: &str, value: Option<&Variant>); fn set_default_timeout(&self, timeout_msec: i32); fn set_interface_info(&self, info: Option<&DBusInterfaceInfo>); fn g_connection(&self) -> Option<DBusConnection>; fn g_default_timeout(&self) -> i32; fn set_g_default_timeout(&self, g_default_timeout: i32); fn g_flags(&self) -> DBusProxyFlags; fn g_interface_info(&self) -> Option<DBusInterfaceInfo>; fn set_g_interface_info(&self, g_interface_info: Option<&DBusInterfaceInfo>); fn g_interface_name(&self) -> Option<GString>; fn g_name(&self) -> Option<GString>; fn g_name_owner(&self) -> Option<GString>; fn g_object_path(&self) -> Option<GString>; fn connect_g_default_timeout_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_g_interface_info_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_g_name_owner_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId;
}

Required Methods§

source

fn call<P: FnOnce(Result<Variant, Error>) + 'static>( &self, method_name: &str, parameters: Option<&Variant>, flags: DBusCallFlags, timeout_msec: i32, cancellable: Option<&impl IsA<Cancellable>>, callback: P )

source

fn call_future( &self, method_name: &str, parameters: Option<&Variant>, flags: DBusCallFlags, timeout_msec: i32 ) -> Pin<Box_<dyn Future<Output = Result<Variant, Error>> + 'static>>

source

fn call_sync( &self, method_name: &str, parameters: Option<&Variant>, flags: DBusCallFlags, timeout_msec: i32, cancellable: Option<&impl IsA<Cancellable>> ) -> Result<Variant, Error>

source

fn call_with_unix_fd_list<P: FnOnce(Result<(Variant, UnixFDList), Error>) + 'static>( &self, method_name: &str, parameters: Option<&Variant>, flags: DBusCallFlags, timeout_msec: i32, fd_list: Option<&impl IsA<UnixFDList>>, cancellable: Option<&impl IsA<Cancellable>>, callback: P )

Available on Unix only.
source

fn call_with_unix_fd_list_future( &self, method_name: &str, parameters: Option<&Variant>, flags: DBusCallFlags, timeout_msec: i32, fd_list: Option<&impl IsA<UnixFDList> + Clone + 'static> ) -> Pin<Box_<dyn Future<Output = Result<(Variant, UnixFDList), Error>> + 'static>>

Available on Unix only.
source

fn call_with_unix_fd_list_sync( &self, method_name: &str, parameters: Option<&Variant>, flags: DBusCallFlags, timeout_msec: i32, fd_list: Option<&impl IsA<UnixFDList>>, cancellable: Option<&impl IsA<Cancellable>> ) -> Result<(Variant, UnixFDList), Error>

Available on Unix only.
source

fn cached_property(&self, property_name: &str) -> Option<Variant>

source

fn cached_property_names(&self) -> Vec<GString>

source

fn connection(&self) -> DBusConnection

source

fn default_timeout(&self) -> i32

source

fn flags(&self) -> DBusProxyFlags

source

fn interface_info(&self) -> Option<DBusInterfaceInfo>

source

fn interface_name(&self) -> GString

source

fn name(&self) -> Option<GString>

source

fn name_owner(&self) -> Option<GString>

source

fn object_path(&self) -> GString

source

fn set_cached_property(&self, property_name: &str, value: Option<&Variant>)

source

fn set_default_timeout(&self, timeout_msec: i32)

source

fn set_interface_info(&self, info: Option<&DBusInterfaceInfo>)

source

fn g_connection(&self) -> Option<DBusConnection>

source

fn g_default_timeout(&self) -> i32

source

fn set_g_default_timeout(&self, g_default_timeout: i32)

source

fn g_flags(&self) -> DBusProxyFlags

source

fn g_interface_info(&self) -> Option<DBusInterfaceInfo>

source

fn set_g_interface_info(&self, g_interface_info: Option<&DBusInterfaceInfo>)

source

fn g_interface_name(&self) -> Option<GString>

source

fn g_name(&self) -> Option<GString>

source

fn g_name_owner(&self) -> Option<GString>

source

fn g_object_path(&self) -> Option<GString>

source

fn connect_g_default_timeout_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_g_interface_info_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_g_name_owner_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId

Implementors§