atspi_client/
device_event_controller_ext.rs

1use atspi_proxies::device_event_controller::{
2	DeviceEventController, DeviceEventControllerBlocking, DeviceEventControllerProxy,
3	DeviceEventControllerProxyBlocking,
4};
5
6impl_extended_errors!(DeviceEventControllerProxy<'_>, DeviceEventControllerExtError);
7impl_extended_errors!(
8	DeviceEventControllerProxyBlocking<'_>,
9	DeviceEventControllerBlockingExtError
10);
11
12#[allow(clippy::module_name_repetitions)]
13pub trait DeviceEventControllerExtError: DeviceEventController {
14	type Error: std::error::Error;
15}
16pub trait DeviceEventControllerBlockingExtError: DeviceEventControllerBlocking {
17	type Error: std::error::Error;
18}
19
20pub trait DeviceEventControllerExt {}
21pub trait DeviceEventControllerBlockingExt {}
22
23impl<T: DeviceEventControllerExtError + DeviceEventController> DeviceEventControllerExt for T {}
24impl<T: DeviceEventControllerBlockingExtError + DeviceEventControllerBlocking>
25	DeviceEventControllerBlockingExt for T
26{
27}
28
29assert_impl_all!(DeviceEventControllerProxy: DeviceEventController, DeviceEventControllerExt);
30assert_impl_all!(
31	DeviceEventControllerProxyBlocking: DeviceEventControllerBlocking,
32	DeviceEventControllerBlockingExt
33);