Trait sourceview5::prelude::DBusProxyExt
source · pub trait DBusProxyExt: IsA<DBusProxy> + Sealed + 'static {
Show 32 methods
// Provided methods
fn call<P>(
&self,
method_name: &str,
parameters: Option<&Variant>,
flags: DBusCallFlags,
timeout_msec: i32,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P,
)
where P: FnOnce(Result<Variant, Error>) + 'static { ... }
fn call_future(
&self,
method_name: &str,
parameters: Option<&Variant>,
flags: DBusCallFlags,
timeout_msec: i32,
) -> Pin<Box<dyn Future<Output = Result<Variant, Error>>>> { ... }
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>(
&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,
)
where P: FnOnce(Result<(Variant, UnixFDList), Error>) + 'static { ... }
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>>>> { ... }
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>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + Send + Sync + 'static { ... }
fn connect_g_interface_info_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + Send + Sync + 'static { ... }
fn connect_g_name_owner_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + Send + Sync + 'static { ... }
}
Provided Methods§
fn call<P>( &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>>>>
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>( &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>>>>
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>(&self, f: F) -> SignalHandlerId
fn connect_g_interface_info_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_g_name_owner_notify<F>(&self, f: F) -> SignalHandlerId
Object Safety§
This trait is not object safe.