Struct finchers::error::Error[][src]

pub struct Error(_);

A type which holds a value of HttpError in a type-erased form.

Methods

impl Error
[src]

Returns true if the type of contained value is the same as T.

Attempts to downcast the boxed value to a conrete type by reference.

Attempts to downcast the boxed value to a conrete type by mutable reference.

Attempts to downcast the boxed value to a conrete type.

Return the HTTP status code associated with contained value.

Append a set of header values to the header map.

Returns a reference to the underlying cause of contained error value.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl<E: HttpError> From<E> for Error
[src]

Performs the conversion.

impl AsRef<HttpError> for Error
[src]

Performs the conversion.

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl Serialize for Error
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

impl Send for Error

impl Sync for Error