[−][src]Trait tide::ResultExt
Extension methods for Result
.
Required methods
fn with_err_status(self, status: StatusCode) -> Result<T>
Convert to an Result
, wrapping the Err
case with a custom
response status.
Provided methods
fn client_err(self) -> Result<T>
Convert to an Result
, treating the Err
case as a client
error (response code 400).
fn server_err(self) -> Result<T>
Convert to an Result
, treating the Err
case as a server
error (response code 500).