implement to_network_address method

This commit is contained in:
yggverse 2025-01-13 21:52:12 +02:00
parent 007921f73f
commit fecbbff18f
4 changed files with 42 additions and 13 deletions

View file

@ -0,0 +1,16 @@
use std::fmt::{Display, Formatter, Result};
#[derive(Debug)]
pub enum Error {
NetworkAddress(crate::gio::network_address::error::Error),
}
impl Display for Error {
fn fmt(&self, f: &mut Formatter) -> Result {
match self {
Self::NetworkAddress(e) => {
write!(f, "Network Address error: {e}")
}
}
}
}