cs_mwc_web3/transports/
mod.rs1pub mod batch;
4pub use self::batch::Batch;
5pub mod either;
6pub use self::either::Either;
7
8#[cfg(feature = "http")]
9pub mod http;
10#[cfg(feature = "http")]
11pub use self::http::Http;
12
13#[cfg(any(feature = "ws-tokio", feature = "ws-async-std"))]
14pub mod ws;
15#[cfg(any(feature = "ws-tokio", feature = "ws-async-std"))]
16pub use self::ws::WebSocket;
17
18#[cfg(feature = "ipc-tokio")]
19pub mod ipc;
20#[cfg(feature = "ipc-tokio")]
21pub use self::ipc::Ipc;
22
23#[cfg(any(feature = "test", test))]
24pub mod test;
25
26#[cfg(feature = "url")]
27impl From<url::ParseError> for crate::Error {
28 fn from(err: url::ParseError) -> Self {
29 crate::Error::Transport(format!("{:?}", err))
30 }
31}
32
33#[cfg(feature = "async-native-tls")]
34impl From<async_native_tls::Error> for crate::Error {
35 fn from(err: async_native_tls::Error) -> Self {
36 crate::Error::Transport(format!("{:?}", err))
37 }
38}
39
40#[cfg(feature = "eip-1193")]
41pub mod eip_1193;