Module prelude Copy item path Source pub use crate::server::configuration::Opt ;
pub use crate::server::Server ;
pub use crate::services::background::background_service ;
pub use crate::upstreams::peer::HttpPeer ;
pub use pingora_error::ErrorType ::*;
Error The struct that represents an error ErrorSource The source of the error ErrorType Predefined type of errors ImmutStr 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. RetryType Whether the request can be retried after encountering this error Context Helper trait to add more context to a given error ErrorTrait Error
is a trait representing the basic expectations for error values,
i.e., values of type E
in Result<T, E>
.OkOrErr Helper trait to convert an Option to an Error with context. OrErr Helper trait to chain errors with context BError The boxed Error , the desired way to pass Error Result Syntax sugar for std::Result<T, BError>