atspi_client/
value_ext.rs1use atspi_proxies::value::{Value, ValueBlocking, ValueProxy, ValueProxyBlocking};
2
3impl_extended_errors!(ValueProxy<'_>, ValueExtError);
4impl_extended_errors!(ValueProxyBlocking<'_>, ValueBlockingExtError);
5
6#[allow(clippy::module_name_repetitions)]
7pub trait ValueExtError: Value {
8 type Error: std::error::Error;
9}
10
11#[allow(clippy::module_name_repetitions)]
12pub trait ValueBlockingExtError: ValueBlocking {
13 type Error: std::error::Error;
14}
15
16pub trait ValueExt {}
17pub trait ValueBlockingExt {}
18
19impl<T: ValueExtError + Value> ValueExt for T {}
20impl<T: ValueBlockingExtError + ValueBlocking> ValueBlockingExt for T {}
21
22assert_impl_all!(ValueProxy: Value, ValueExt);
23assert_impl_all!(ValueProxyBlocking: ValueBlocking, ValueBlockingExt);