Enum digest_headers::use_rocket::Error [] [src]

pub enum Error {
    Digest(DigestError),
    Header(&'static str),
}

The error type for Rocket-related Digest logic

This type is used in the implementations of rocket::request::FromRequest for DigestHeader and ContentLengthHeader.

Variants

An error creating a Digest

An error parsing a header

Methods

impl Error
[src]

[src]

A function that can convert this error type into a Rocket Failure tuple.

For both cases, the associated status is BadRequest.

Trait Implementations

impl Clone for Error
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl From<DigestError> for Error
[src]

[src]

Performs the conversion.

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl StdError for Error
[src]

[src]

A short description of the error. Read more

[src]

The lower-level cause of this error, if any. Read more

Auto Trait Implementations

impl Send for Error

impl Sync for Error