pub struct RegistrationBuilder<'a> { /* private fields */ }
Expand description
Build a registered DBus object, by handling different parts of DBus.
Implementations§
Source§impl<'a> RegistrationBuilder<'a>
impl<'a> RegistrationBuilder<'a>
pub fn method_call<F: Fn(DBusConnection, Option<&str>, &str, Option<&str>, &str, Variant, DBusMethodInvocation) + 'static>( self, f: F, ) -> Self
Sourcepub fn typed_method_call<T: DBusMethodCall>(self) -> MethodCallBuilder<'a, T>
pub fn typed_method_call<T: DBusMethodCall>(self) -> MethodCallBuilder<'a, T>
Handle method calls on this object.
Return a builder for method calls which parses method names and
parameters with the given DBusMethodCall
and then allows to dispatch
the parsed call either synchronously or asynchronously.
pub fn property<F: Fn(DBusConnection, Option<&str>, &str, &str, &str) -> Variant + 'static>( self, f: F, ) -> Self
pub fn set_property<F: Fn(DBusConnection, Option<&str>, &str, &str, &str, Variant) -> bool + 'static>( self, f: F, ) -> Self
pub fn build(self) -> Result<RegistrationId, Error>
Auto Trait Implementations§
impl<'a> Freeze for RegistrationBuilder<'a>
impl<'a> !RefUnwindSafe for RegistrationBuilder<'a>
impl<'a> !Send for RegistrationBuilder<'a>
impl<'a> !Sync for RegistrationBuilder<'a>
impl<'a> Unpin for RegistrationBuilder<'a>
impl<'a> !UnwindSafe for RegistrationBuilder<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more