atspi_client/
table_ext.rs1use atspi_proxies::table::{Table, TableBlocking, TableProxy, TableProxyBlocking};
2
3impl_extended_errors!(TableProxy<'_>, TableExtError);
4impl_extended_errors!(TableProxyBlocking<'_>, TableBlockingExtError);
5
6#[allow(clippy::module_name_repetitions)]
7pub trait TableExtError: Table {
8 type Error: std::error::Error;
9}
10pub trait TableBlockingExtError: TableBlocking {
11 type Error: std::error::Error;
12}
13
14pub trait TableExt {}
15pub trait TableBlockingExt {}
16
17impl<T: TableExtError + Table> TableExt for T {}
18impl<T: TableBlockingExtError + TableBlocking> TableBlockingExt for T {}
19
20assert_impl_all!(TableProxy: Table, TableExt);
21assert_impl_all!(TableProxyBlocking: TableBlocking, TableBlockingExt);