atspi_client/
socket_ext.rs

1use atspi_proxies::socket::{Socket, SocketBlocking, SocketProxy, SocketProxyBlocking};
2
3impl_extended_errors!(SocketProxy<'_>, SocketExtError);
4impl_extended_errors!(SocketProxyBlocking<'_>, SocketBlockingExtError);
5
6#[allow(clippy::module_name_repetitions)]
7pub trait SocketExtError: Socket {
8	type Error: std::error::Error;
9}
10pub trait SocketBlockingExtError: SocketBlocking {
11	type Error: std::error::Error;
12}
13
14pub trait SocketExt {}
15pub trait SocketBlockingExt {}
16
17impl<T: SocketExtError + Socket> SocketExt for T {}
18impl<T: SocketBlockingExtError + SocketBlocking> SocketBlockingExt for T {}