[]Struct gio::DBusNodeInfo

pub struct DBusNodeInfo(_);

Information about nodes in a remote object hierarchy.

Implementations

impl DBusNodeInfo[src]

pub fn new_for_xml(xml_data: &str) -> Result<DBusNodeInfo, Error>[src]

Parses xml_data and returns a DBusNodeInfo representing the data.

The introspection XML must contain exactly one top-level <node> element.

Note that this routine is using a [GMarkup][glib-Simple-XML-Subset-Parser.description]-based parser that only accepts a subset of valid XML documents.

xml_data

Valid D-Bus introspection XML.

Returns

A DBusNodeInfo structure or None if error is set. Free with DBusNodeInfo::unref.

pub fn generate_xml(&self, indent: u32, string_builder: &mut String)[src]

Appends an XML representation of self (and its children) to string_builder.

This function is typically used for generating introspection XML documents at run-time for handling the org.freedesktop.DBus.Introspectable.Introspect method.

indent

Indentation level.

string_builder

A glib::String to to append XML data to.

pub fn lookup_interface(&self, name: &str) -> Option<DBusInterfaceInfo>[src]

Looks up information about an interface.

The cost of this function is O(n) in number of interfaces.

name

A D-Bus interface name.

Returns

A DBusInterfaceInfo or None if not found. Do not free, it is owned by self.

Trait Implementations

impl Clone for DBusNodeInfo

impl Debug for DBusNodeInfo[src]

impl Eq for DBusNodeInfo[src]

impl Hash for DBusNodeInfo[src]

impl Ord for DBusNodeInfo[src]

impl PartialEq<DBusNodeInfo> for DBusNodeInfo[src]

impl PartialOrd<DBusNodeInfo> for DBusNodeInfo[src]

impl StaticType for DBusNodeInfo

impl StructuralEq for DBusNodeInfo[src]

impl StructuralPartialEq for DBusNodeInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for DBusNodeInfo

impl !Send for DBusNodeInfo

impl !Sync for DBusNodeInfo

impl Unpin for DBusNodeInfo

impl UnwindSafe for DBusNodeInfo

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<Array>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.