binder::binder_impl

Trait ToSyncInterface

Source
pub trait ToSyncInterface
where Self: Interface, Self::Target: FromIBinder,
{ type Target: ?Sized; }
Expand description

Implemented by async interfaces to specify what the associated sync interface is.

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 sync interface associated with this async interface.

Implementors§