feat(client): add optional Tokio socket support

This commit is contained in:
Nils Andreas Svee committed 2026-08-04 15:29:35 +07:00
1 parent 069da5cee9
commit a542d4edf1
7 files changed
+528 -33

No files matched your search

+4
View File
@@ -12,6 +12,10 @@ use thiserror::Error;
#[derive(Debug, Error)]
#[non_exhaustive]
pub enum ClientError {
/// A Tokio-backed client operation was polled without a current runtime.
#[cfg(feature = "tokio")]
#[error("Tokio AsyncClient requires a current Tokio runtime")]
NoTokioRuntime,
/// The configured server address could not be resolved to a socket address.
///
/// Check the host, port, address-family restrictions, and name service