mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-04-01 09:35:33 +00:00
implement to_network_address method
This commit is contained in:
parent
007921f73f
commit
fecbbff18f
4 changed files with 42 additions and 13 deletions
16
src/client/connection/request/error.rs
Normal file
16
src/client/connection/request/error.rs
Normal 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}")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue