Expand description
The library to provide the struct to represent errors in pingora.
Structs§
- Error
- The struct that represents an error
Enums§
- Error
Source - The source of the error
- Error
Type - Predefined type of errors
- Immut
Str - A data struct that holds either immutable string or reference to static str.
Compared to String or
Box<str>
, it avoids memory allocation on static str. - Retry
Type - Whether the request can be retried after encountering this error
Traits§
- Context
- Helper trait to add more context to a given error
- Error
Trait Error
is a trait representing the basic expectations for error values, i.e., values of typeE
inResult<T, E>
.- OkOrErr
- Helper trait to convert an Option to an Error with context.
- OrErr
- Helper trait to chain errors with context