ggemini 0.20.0

Glib/Gio-oriented network API for Gemini protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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}")
            }
        }
    }
}