Structure for parsing types

This commit is contained in:
Greg Heartsfield 2021-11-23 10:46:47 -06:00
parent ae68fdd896
commit 5224b9159e

View File

@ -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,
} }