This commit is contained in:
lubeilin
2023-03-10 23:01:57 +08:00
parent ebf84db204
commit 5b2c2435d5
39 changed files with 2493 additions and 2552 deletions
+2 -2
View File
@@ -7,8 +7,6 @@ use thiserror::Error;
pub enum Error {
#[error("packet error")]
PacketError(#[from] packet::error::Error),
#[error("TokioWatchRecvError")]
TokioWatchRecvError(#[from] tokio::sync::watch::error::RecvError),
#[error("Io error")]
Io(#[from] io::Error),
#[error("Channel error")]
@@ -21,6 +19,8 @@ pub enum Error {
NotSupport,
#[error("Stop")]
Stop(String),
#[error("Warn")]
Warn(String),
}
pub type Result<T> = std::result::Result<T, Error>;