Crate serror

source ·

Structs§

  • Intermediate error type which can be converted to from any error using ?. The standard impl From<E> for Error will attach StatusCode::INTERNAL_SERVER_ERROR, so if an alternative StatusCode is desired, you should use .status_code (AddStatusCode) to add the status before using ?.

Traits§

  • Convenience trait to convert errors into serror::Error by adding status and converting error into anyhow error.

Functions§

Type Aliases§