document util crate

This commit is contained in:
Trinity Pointard
2021-03-20 20:38:44 +01:00
parent c4c4b7dedc
commit f4bf987627
6 changed files with 63 additions and 3 deletions
+4
View File
@@ -1,9 +1,12 @@
//! Module containing error types used in Garage
#![allow(missing_docs)]
use err_derive::Error;
use hyper::StatusCode;
use std::io;
use crate::data::*;
/// RPC related errors
#[derive(Debug, Error)]
pub enum RPCError {
#[error(display = "Node is down: {:?}.", _0)]
@@ -28,6 +31,7 @@ pub enum RPCError {
TooManyErrors(Vec<String>),
}
/// Regroup all Garage errors
#[derive(Debug, Error)]
pub enum Error {
#[error(display = "IO error: {}", _0)]