Skip to content

Instantly share code, notes, and snippets.

View dorianvp's full-sized avatar
☀️

Dorian dorianvp

☀️
View GitHub Profile
@dorianvp
dorianvp / main.rs
Created July 10, 2025 12:42
A reimplementation of Zaino RPC error types using the ErrorKind pattern.
use std::io;
#[derive(Debug, thiserror::Error)]
pub enum TransportError {
#[error("could not read zebra authentication cookie file: {0}")]
CookieReadError(io::Error),
#[error("HTTP request error: {0}")]
ReqwestError(#[from] reqwest::Error),