logo
pub struct ObjectManager;
Expand description

Service-side Object Manager interface implementation.

The recommended path to add this interface at is the path form of the well-known name of a D-Bus service, or below. For example, if a D-Bus service is available at the well-known name net.example.ExampleService1, this interface should typically be registered at /net/example/ExampleService1, or below (to allow for multiple object managers in a service).

It is supported, but not recommended, to add this interface at the root path, /.

When added to an ObjectServer, InterfacesAdded signal is emitted for all the objects under the path its added at. You can use this fact to minimize the signal emissions by populating the entire (sub)tree under path before registering an object manager.

Implementations

This signal is emitted when either a new object is added or when an existing object gains one or more interfaces. The interfaces_and_properties argument contains a map with the interfaces and properties (if any) that have been added to the given object path.

This signal is emitted whenever an object is removed or it loses one or more interfaces. The interfaces parameters contains a list of the interfaces that were removed.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Return the name of the interface. Ex: “org.foo.MyInterface”

Get a property value. Returns None if the property doesn’t exist.

Return all the properties.

Set a property value. Read more

Set a property value. Read more

Call a method. Read more

Call a &mut self method. Read more

Write introspection XML to the writer, with the given indentation level.

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

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more