Struct dbus_crossroads::IfaceBuilder
source · [−]pub struct IfaceBuilder<T: Send + 'static>(_, _);
Expand description
Struct used to build an interface.
You get an instance of this struct in the call to Crossroads::register.
Register new methods, properties and signals using the corresponding functions on this struct.
You might find several similar functions, e g method
, method_with_cr
, method_with_cr_async
and
method_with_cr_custom
. Methods that have “with_cr” will allow you to access the full mutable Crossroads
instance, but beware - trying to recursively handle methods from within a method handler is not allowed
and may cause panics.
Methods that have “_async” will allow you to defer the result of your method. During await points, other tasks with method calls can run as separate tasks. Remember to call Crossroads::set_async_support when using async methods.