Struct dbus_tree::Tree[][src]

pub struct Tree<M: MethodType<D>, D: DataType> { /* fields omitted */ }
Expand description

A collection of object paths.

Implementations

Builder function that adds an object path to this tree.

Get a reference to an object path from the tree.

Iterates over object paths in this tree.

Non-builder function that adds an object path to this tree.

Remove a object path from the Tree. Returns the object path removed, or None if not found.

Registers or unregisters all object paths in the tree to a ffidisp::Connection.

This method takes an ConnectionItem iterator (you get it from Connection::iter()) and handles all matching items. Non-matching items (e g signals) are passed through.

Handles a message.

Will return None in case the object path was not found in this tree, or otherwise a list of messages to be sent back.

Tries to handle an incoming message from the provided channel if there is one. If there isn’t one, it will wait up to timeout

Get associated data

Connects a SyncConnection with a Tree so that incoming method calls are handled.

The tree needs to be of type MTSync.

Connects a Connection with a Tree so that incoming method calls are handled.

The tree needs to be of type MTSync.

Connects a LocalConnection with a Tree so that incoming method calls are handled.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Function to be called if the message matches the MsgHandlerType

Type of messages for which the handler will be called Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.