mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
delegate from_uri method to gio::network_address wrapper
This commit is contained in:
parent
239786da6a
commit
5737b89278
4 changed files with 35 additions and 22 deletions
|
|
@ -2,11 +2,12 @@ use std::fmt::{Display, Formatter, Result};
|
|||
|
||||
#[derive(Debug)]
|
||||
pub enum Error {
|
||||
Connectable(String),
|
||||
Connection(super::connection::Error),
|
||||
Connect(glib::Error),
|
||||
Connectable(String),
|
||||
Connection(crate::client::connection::Error),
|
||||
NetworkAddress(crate::gio::network_address::Error),
|
||||
Request(glib::Error),
|
||||
Response(super::response::Error),
|
||||
Response(crate::client::response::Error),
|
||||
Write(glib::Error),
|
||||
}
|
||||
|
||||
|
|
@ -22,6 +23,9 @@ impl Display for Error {
|
|||
Self::Connect(reason) => {
|
||||
write!(f, "Connect error: {reason}")
|
||||
}
|
||||
Self::NetworkAddress(reason) => {
|
||||
write!(f, "Network address error: {reason}")
|
||||
}
|
||||
Self::Request(reason) => {
|
||||
write!(f, "Request error: {reason}")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue