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 {
|
||||
#[error("command from client not recognized")]
|
||||
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