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
Digest(DigestError)An error creating a Digest
Header(&'static str)An error parsing a header
Methods
impl Error[src]
pub fn into_rocket_failure(self) -> (Status, Self)[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]
fn clone(&self) -> Error[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for Error[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl From<DigestError> for Error[src]
fn from(e: DigestError) -> Self[src]
Performs the conversion.
impl Display for Error[src]
fn fmt(&self, f: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more