pub type HandlerResult = Result<(), Error>;
handler 业务返回:Ok(()) 处理成功,Err(e) 处理出错。
Ok(())
Err(e)
pub enum HandlerResult { Ok(()), Err(Error), }
Contains the success value
Contains the error value