Structure for parsing types
This commit is contained in:
@@ -9,4 +9,10 @@ pub type Result<T, E = Error> = result::Result<T, E>;
|
|||||||
pub enum Error {
|
pub enum Error {
|
||||||
#[error("command from client not recognized")]
|
#[error("command from client not recognized")]
|
||||||
CommandNotFound,
|
CommandNotFound,
|
||||||
|
#[error("parsing JSON->Event failed")]
|
||||||
|
EventParseFailed,
|
||||||
|
#[error("parsing JSON->Req failed")]
|
||||||
|
ReqParseFailed,
|
||||||
|
#[error("parsing JSON->Close failed")]
|
||||||
|
CloseParseFailed,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user