Struct gio::DBusInterfaceInfo
source · #[repr(transparent)]pub struct DBusInterfaceInfo { /* private fields */ }
Expand description
Information about a D-Bus interface.
Implementations§
source§impl DBusInterfaceInfo
impl DBusInterfaceInfo
sourcepub fn as_ptr(&self) -> *mut GDBusInterfaceInfo
pub fn as_ptr(&self) -> *mut GDBusInterfaceInfo
Return the inner pointer to the underlying C value.
sourcepub unsafe fn from_glib_ptr_borrow<'a>(
ptr: *const *const GDBusInterfaceInfo
) -> &'a Self
pub unsafe fn from_glib_ptr_borrow<'a>( ptr: *const *const GDBusInterfaceInfo ) -> &'a Self
Borrows the underlying C value.
source§impl DBusInterfaceInfo
impl DBusInterfaceInfo
sourcepub fn lookup_method(&self, name: &str) -> Option<DBusMethodInfo>
pub fn lookup_method(&self, name: &str) -> Option<DBusMethodInfo>
Looks up information about a method.
The cost of this function is O(n) in number of methods unless
g_dbus_interface_info_cache_build()
has been used on self
.
name
A D-Bus method name (typically in CamelCase)
Returns
A DBusMethodInfo
or None
if not found. Do not free, it is owned by self
.
sourcepub fn lookup_property(&self, name: &str) -> Option<DBusPropertyInfo>
pub fn lookup_property(&self, name: &str) -> Option<DBusPropertyInfo>
Looks up information about a property.
The cost of this function is O(n) in number of properties unless
g_dbus_interface_info_cache_build()
has been used on self
.
name
A D-Bus property name (typically in CamelCase).
Returns
A DBusPropertyInfo
or None
if not found. Do not free, it is owned by self
.
sourcepub fn lookup_signal(&self, name: &str) -> Option<DBusSignalInfo>
pub fn lookup_signal(&self, name: &str) -> Option<DBusSignalInfo>
Looks up information about a signal.
The cost of this function is O(n) in number of signals unless
g_dbus_interface_info_cache_build()
has been used on self
.
name
A D-Bus signal name (typically in CamelCase)
Returns
A DBusSignalInfo
or None
if not found. Do not free, it is owned by self
.
Trait Implementations§
source§impl Clone for DBusInterfaceInfo
impl Clone for DBusInterfaceInfo
source§impl Debug for DBusInterfaceInfo
impl Debug for DBusInterfaceInfo
source§impl From<DBusInterfaceInfo> for Value
impl From<DBusInterfaceInfo> for Value
source§fn from(s: DBusInterfaceInfo) -> Self
fn from(s: DBusInterfaceInfo) -> Self
source§impl HasParamSpec for DBusInterfaceInfo
impl HasParamSpec for DBusInterfaceInfo
type ParamSpec = ParamSpecBoxed
§type SetValue = DBusInterfaceInfo
type SetValue = DBusInterfaceInfo
type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, DBusInterfaceInfo>
fn param_spec_builder() -> Self::BuilderFn
source§impl Hash for DBusInterfaceInfo
impl Hash for DBusInterfaceInfo
source§impl Ord for DBusInterfaceInfo
impl Ord for DBusInterfaceInfo
source§fn cmp(&self, other: &DBusInterfaceInfo) -> Ordering
fn cmp(&self, other: &DBusInterfaceInfo) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq<DBusInterfaceInfo> for DBusInterfaceInfo
impl PartialEq<DBusInterfaceInfo> for DBusInterfaceInfo
source§fn eq(&self, other: &DBusInterfaceInfo) -> bool
fn eq(&self, other: &DBusInterfaceInfo) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<DBusInterfaceInfo> for DBusInterfaceInfo
impl PartialOrd<DBusInterfaceInfo> for DBusInterfaceInfo
source§fn partial_cmp(&self, other: &DBusInterfaceInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &DBusInterfaceInfo) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for DBusInterfaceInfo
impl StaticType for DBusInterfaceInfo
source§fn static_type() -> Type
fn static_type() -> Type
Self
.