Enum http_cache::CacheError 
source · pub enum CacheError {
Show 14 variants
    General(Error),
    Http(Error),
    InvalidStatusCode(InvalidStatusCode),
    HeaderToStr(ToStrError),
    InvalidMethod(InvalidMethod),
    InvalidUri(InvalidUri),
    InvalidUrl(ParseError),
    InvalidHeaderValue(InvalidHeaderValue),
    InvalidHeaderName(InvalidHeaderName),
    CaCache(Error),
    Bincode(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
Http(Error)
Error from http
InvalidStatusCode(InvalidStatusCode)
There was an error parsing the HTTP status code
HeaderToStr(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
InvalidUrl(ParseError)
There was an error parsing the URL
InvalidHeaderValue(InvalidHeaderValue)
There was an error parsing an HTTP header value
InvalidHeaderName(InvalidHeaderName)
There was an error parsing an HTTP header name
CaCache(Error)
Error from cacache
Bincode(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
sourceimpl Debug for CacheError
 
impl Debug for CacheError
sourceimpl Diagnostic for CacheError
 
impl Diagnostic for CacheError
sourcefn code<'a>(&'a self) -> Option<Box<dyn Display + 'a>>
 
fn code<'a>(&'a self) -> Option<Box<dyn Display + 'a>>
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 moresourcefn severity(&self) -> Option<Severity>
 
fn severity(&self) -> Option<Severity>
Diagnostic severity. This may be used by
ReportHandlers to change the display format
of this diagnostic. Read moresourcefn help<'a>(&'a self) -> Option<Box<dyn Display + 'a, Global>>
 
fn help<'a>(&'a self) -> Option<Box<dyn Display + 'a, Global>>
Additional help text related to this 
Diagnostic. Do you have any
advice for the poor soul who’s just run into this issue? Read moresourcefn url<'a>(&'a self) -> Option<Box<dyn Display + 'a, Global>>
 
fn url<'a>(&'a self) -> Option<Box<dyn Display + 'a, Global>>
URL to visit for a more detailed explanation/help about this
Diagnostic. Read moresourcefn source_code(&self) -> Option<&dyn SourceCode>
 
fn source_code(&self) -> Option<&dyn SourceCode>
Source code to apply this 
Diagnostic’s Diagnostic::labels to.sourcefn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan>, Global>>
 
fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan>, Global>>
Labels to apply to this 
Diagnostic’s Diagnostic::source_codeAdditional related 
Diagnostics.sourcefn diagnostic_source(&self) -> Option<&dyn Diagnostic>
 
fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
The cause of the error.
sourceimpl Display for CacheError
 
impl Display for CacheError
sourceimpl Error for CacheError
 
impl Error for CacheError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
 
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
 
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<Error> for CacheError
 
impl From<Error> for CacheError
sourceimpl From<Error> for CacheError
 
impl From<Error> for CacheError
sourceimpl From<Error> for CacheError
 
impl From<Error> for CacheError
sourceimpl From<InvalidHeaderName> for CacheError
 
impl From<InvalidHeaderName> for CacheError
sourcefn from(source: InvalidHeaderName) -> Self
 
fn from(source: InvalidHeaderName) -> Self
Converts to this type from the input type.
sourceimpl From<InvalidHeaderValue> for CacheError
 
impl From<InvalidHeaderValue> for CacheError
sourcefn from(source: InvalidHeaderValue) -> Self
 
fn from(source: InvalidHeaderValue) -> Self
Converts to this type from the input type.
sourceimpl From<InvalidMethod> for CacheError
 
impl From<InvalidMethod> for CacheError
sourcefn from(source: InvalidMethod) -> Self
 
fn from(source: InvalidMethod) -> Self
Converts to this type from the input type.
sourceimpl From<InvalidStatusCode> for CacheError
 
impl From<InvalidStatusCode> for CacheError
sourcefn from(source: InvalidStatusCode) -> Self
 
fn from(source: InvalidStatusCode) -> Self
Converts to this type from the input type.
sourceimpl From<InvalidUri> for CacheError
 
impl From<InvalidUri> for CacheError
sourcefn from(source: InvalidUri) -> Self
 
fn from(source: InvalidUri) -> Self
Converts to this type from the input type.
sourceimpl From<ParseError> for CacheError
 
impl From<ParseError> for CacheError
sourcefn from(source: ParseError) -> Self
 
fn from(source: ParseError) -> Self
Converts to this type from the input type.
sourceimpl From<ToStrError> for CacheError
 
impl From<ToStrError> for CacheError
sourcefn from(source: ToStrError) -> Self
 
fn from(source: ToStrError) -> Self
Converts to this type from the input type.
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
sourceimpl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more