Struct dbus_crossroads::PropBuilder[][src]

pub struct PropBuilder<'a, T: 'static, A: 'static> { /* fields omitted */ }
Expand description

Struct used to describe a property when building an interface.

Implementations

Returns a function which, when called, creates a PropertiesChanged message.

Call the resulting function with the path that the object belongs to, and a reference to the new value. If a PropertiesChanged message should be sent (this depends on the emits_changed function called), such a message will be returned.

Panics

If emits_changed is set to “const”, the function will panic.

Adds a set property handler to this property.

In case an EmitsChangedSignal should be emitted, the callback should return Ok(Some(v)) where v is the value to be emitted. If no EmitsChangedSignal should be emitted, return Ok(None).

Adds a set property handler to this property, and allowing the entire tree to be changed.

In case an EmitsChangedSignal should be emitted, the callback should return Ok(Some(v)) where v is the value to be emitted. If no EmitsChangedSignal should be emitted, return Ok(None).

This means that the property never changes. Attempts to change it or make an “PropertiesChanged” signal will result in a panic.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. 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.