pub trait Binder: Sized {
// Required method
fn bind_by_receiver<'async_trait>(
self,
dbus: DBus,
receiver: Receiver<Message>,
) -> Pin<Box<dyn Future<Output = DBusResult<()>> + Send + 'async_trait>>
where Self: 'async_trait;
// Provided method
fn bind<'async_trait>(
self,
dbus: DBus,
object_path: ObjectPath,
) -> Pin<Box<dyn Future<Output = DBusResult<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait { ... }
}
Required Methods§
fn bind_by_receiver<'async_trait>(
self,
dbus: DBus,
receiver: Receiver<Message>,
) -> Pin<Box<dyn Future<Output = DBusResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
Provided Methods§
fn bind<'async_trait>(
self,
dbus: DBus,
object_path: ObjectPath,
) -> Pin<Box<dyn Future<Output = DBusResult<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.