From b94f8e694bf01f5dba9ce2c01f589463a3dfbc69 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Wed, 9 Oct 2024 18:23:58 -0500 Subject: feat!: rewrite to use traits and streams --- src/error.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/error.rs') diff --git a/src/error.rs b/src/error.rs index 109c944..8ed4dfa 100644 --- a/src/error.rs +++ b/src/error.rs @@ -14,12 +14,18 @@ pub enum Error { #[error("Invalid HTTP method")] Method, + #[error("Serialization error: {0}")] + Serialization(#[from] serde_json::Error), + #[error("Axum error: {0}")] Axum(#[from] axum::Error), #[error("Route not found: {0}")] RouteNotFound(axum::http::Uri), + #[error("Recv Error: {0}")] + Recv(#[from] tokio::sync::watch::error::RecvError), + #[error("Service not found: {0}")] ServiceNotFound(String), } -- cgit v1.2.3-70-g09d2