binder::binder_impl

Trait ToAsyncInterface

Source
pub trait ToAsyncInterface<P>
where Self: Interface, Self::Target: FromIBinder,
{ type Target: ?Sized; }
Expand description

Implemented by sync interfaces to specify what the associated async interface is. Generic to handle the fact that async interfaces are generic over a thread pool.

The binder in any object implementing this trait should be compatible with the Target associated type, and using FromIBinder to convert it to the target should not fail.

Required Associated Types§

Source

type Target: ?Sized

The async interface associated with this sync interface.

Implementors§