pub type Reply = Result<ReplyData, WebError>;
A handler’s return type: Ok(ReplyData) for a success payload, or Err(WebError) for an error the framework renders as an HTTP error response. The reply! macro produces the Ok side.
Ok(
ReplyData
)
Err(
WebError
reply!
Ok
pub enum Reply { Ok(ReplyData), Err(WebError), }
Contains the success value
Contains the error value