Struct gio::DBusInterfaceInfo
source · [−]#[repr(transparent)]pub struct DBusInterfaceInfo { /* private fields */ }
Expand description
Information about a D-Bus interface.
Implementations
sourceimpl 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
sourceimpl Clone for DBusInterfaceInfo
impl Clone for DBusInterfaceInfo
sourceimpl Debug for DBusInterfaceInfo
impl Debug for DBusInterfaceInfo
sourceimpl Hash for DBusInterfaceInfo
impl Hash for DBusInterfaceInfo
sourceimpl Ord for DBusInterfaceInfo
impl Ord for DBusInterfaceInfo
sourceimpl PartialEq<DBusInterfaceInfo> for DBusInterfaceInfo
impl PartialEq<DBusInterfaceInfo> for DBusInterfaceInfo
sourcefn eq(&self, other: &DBusInterfaceInfo) -> bool
fn eq(&self, other: &DBusInterfaceInfo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DBusInterfaceInfo) -> bool
fn ne(&self, other: &DBusInterfaceInfo) -> bool
This method tests for !=
.
sourceimpl PartialOrd<DBusInterfaceInfo> for DBusInterfaceInfo
impl PartialOrd<DBusInterfaceInfo> for DBusInterfaceInfo
sourcefn partial_cmp(&self, other: &DBusInterfaceInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &DBusInterfaceInfo) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl StaticType for DBusInterfaceInfo
impl StaticType for DBusInterfaceInfo
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
impl Eq for DBusInterfaceInfo
impl StructuralEq for DBusInterfaceInfo
impl StructuralPartialEq for DBusInterfaceInfo
Auto Trait Implementations
impl RefUnwindSafe for DBusInterfaceInfo
impl !Send for DBusInterfaceInfo
impl !Sync for DBusInterfaceInfo
impl Unpin for DBusInterfaceInfo
impl UnwindSafe for DBusInterfaceInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for T where
T: ToValue,
impl<T> ToClosureReturnValue for T where
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more