mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-14 23:19:07 -05:00
Structure for parsing types
This commit is contained in:
parent
ae68fdd896
commit
5224b9159e
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user