Enum http_cache::CacheError
source · [−]pub enum CacheError {
Show 13 variants
General(Error),
HttpError(Error),
InvalidStatusCode(InvalidStatusCode),
HeaderToStrError(ToStrError),
InvalidMethod(InvalidMethod),
InvalidUri(InvalidUri),
InvalidHeaderValue(InvalidHeaderValue),
InvalidHeaderName(InvalidHeaderName),
CaCacheError(Error),
BincodeError(Box<ErrorKind>),
BadVersion,
BadHeader,
BadRequest,
}Expand description
A generic “error” for HTTP caches
Variants
General(Error)
A general error used as a catch all for other errors via anyhow
HttpError(Error)
Error from http
InvalidStatusCode(InvalidStatusCode)
There was an error parsing the HTTP status code
HeaderToStrError(ToStrError)
There was an error converting the header to a string
InvalidMethod(InvalidMethod)
There was an error parsing the HTTP method
InvalidUri(InvalidUri)
There was an error parsing the URI
InvalidHeaderValue(InvalidHeaderValue)
There was an error parsing an HTTP header value
InvalidHeaderName(InvalidHeaderName)
There was an error parsing an HTTP header name
CaCacheError(Error)
Error from cacache
BincodeError(Box<ErrorKind>)
Error from bincode
BadVersion
There was an error parsing the HTTP request version
BadHeader
There was an error parsing an HTTP header value
BadRequest
There was an error parsing the HTTP request
Trait Implementations
Unique diagnostic code that can be used to look up more information
about this Diagnostic. Ideally also globally unique, and documented in
the toplevel crate’s documentation for easy searching. Rust path
format (foo::bar::baz) is recommended, but more classic codes like
E0123 or Enums will work just fine. Read more
Diagnostic severity. This may be used by [ReportHandler]s to change the display format of this diagnostic. Read more
Additional help text related to this Diagnostic. Do you have any advice for the poor soul who’s just run into this issue? Read more
URL to visit for a more detailed explanation/help about this Diagnostic.
Source code to apply this Diagnostic’s Diagnostic::labels to.
Labels to apply to this Diagnostic’s Diagnostic::source_code
Additional related Diagnostics.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for CacheError
impl Send for CacheError
impl Sync for CacheError
impl Unpin for CacheError
impl !UnwindSafe for CacheError
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more