blob: b525e476dac2e850d9aac121d1a6d9da0807f27d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
use thiserror::Error;
#[derive(Debug, Error)]
pub enum Error {
#[error("parse ip address: {0}")]
AddrParse(#[from] std::net::AddrParseError),
#[error("rustables builder: {0}")]
RustablesBuilder(#[from] rustables::error::BuilderError),
#[error("rustables query: {0}")]
RustablesQuery(#[from] rustables::error::QueryError),
}
pub type Result<T> = std::result::Result<T, Error>;
|