pub struct PropContext { /* private fields */ }
Expand description

PropContext is a struct that provides helpful information inside a get/set property handler.

Like Context, but for get/set property handlers.

Implementations

The current object path.

The current interface name.

The current property name.

The message, if any, that caused this method to be called.

Set a reply to message (use in async context only)

Returns PhantomData just to aid the type system

Set a reply to a “set property” message (use in async context only)

This can be used when the property does not send a “EmitsChanged” signal.

Convenience method that sets an error reply if the closure returns an error.

Trait Implementations

Formats the value using the given formatter. 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

Returns the argument unchanged.

Calls U::from(self).

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

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.