[PATCH proxmox v3 08/38] network-types: fqdn: implement standard library Error for Fqdn

Christoph Heiss
2026-04-03T16:55:28Z

Greatly improves intercompatibility with e.g. anyhow, which relies on
this trait for automatic conversions.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
---
Changes v2 -> v3:
* new patch

proxmox-network-types/src/fqdn.rs | 2 ++
1 file changed, 2 insertions(+)

diff --git a/proxmox-network-types/src/fqdn.rs b/proxmox-network-types/src/fqdn.rs
index 24979601..44ab6538 100644
--- a/proxmox-network-types/src/fqdn.rs
+++ b/proxmox-network-types/src/fqdn.rs
@@ -31,6 +31,8 @@ impl fmt::Display for FqdnParseError {
}
}

+impl std::error::Error for FqdnParseError {}
+
/// A type for safely representing fully-qualified domain names (FQDNs).
///
/// It considers following RFCs:
--
2.53.0