mirror of https://github.com/Trivernis/aur-rpc.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
241 B
Rust
13 lines
241 B
Rust
2 years ago
|
use thiserror::Error;
|
||
|
|
||
|
pub type RPCResult<T> = std::result::Result<T, RPCError>;
|
||
|
|
||
|
#[derive(Debug, Error)]
|
||
|
pub enum RPCError {
|
||
|
#[error("HTTP Error {0}")]
|
||
|
HTTP(#[from] reqwest::Error),
|
||
|
|
||
|
#[error("RPC Error {0}")]
|
||
|
RPC(String),
|
||
|
}
|