atspi_client/
hypertext_ext.rs1use atspi_proxies::hypertext::{
2 Hypertext, HypertextBlocking, HypertextProxy, HypertextProxyBlocking,
3};
4
5impl_extended_errors!(HypertextProxy<'_>, HypertextExtError);
6impl_extended_errors!(HypertextProxyBlocking<'_>, HypertextBlockingExtError);
7
8#[allow(clippy::module_name_repetitions)]
9pub trait HypertextExtError: Hypertext {
10 type Error: std::error::Error;
11}
12pub trait HypertextBlockingExtError: HypertextBlocking {
13 type Error: std::error::Error;
14}
15
16pub trait HypertextExt {}
17pub trait HypertextBlockingExt {}
18
19impl<T: HypertextExtError + Hypertext> HypertextExt for T {}
20impl<T: HypertextBlockingExtError + HypertextBlocking> HypertextBlockingExt for T {}
21
22assert_impl_all!(HypertextProxy: Hypertext, HypertextExt);
23assert_impl_all!(HypertextProxyBlocking: HypertextBlocking, HypertextBlockingExt);