Enum rustful::response::FileError [] [src]

pub enum FileError<'a, 'b> {
    Open(ErrorResponse<'a, 'b>),
    Send(Error),
}

Error that may occure while sending a file.

Variants

Failed to open the file.

Failed while sending the file.

Methods

impl<'a, 'b> FileError<'a, 'b>
[src]

Recover the response if the file couldn't be opened.

Send a 404 (not found) response if the file wasn't found, or return self if any other error occurred.

Ignore any error that might have occurred while sending the file.

Trait Implementations

impl<'a, 'b> ResponseError for FileError<'a, 'b>
[src]

Handle the error to "make it go away".

impl<'a, 'b> Into<Error> for FileError<'a, 'b>
[src]

Performs the conversion.

impl<'a, 'b> Debug for FileError<'a, 'b>
[src]

Formats the value using the given formatter. Read more

impl<'a, 'b> Display for FileError<'a, 'b>
[src]

Formats the value using the given formatter. Read more

impl<'a, 'b> Error for FileError<'a, 'b>
[src]

A short description of the error. Read more

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

Auto Trait Implementations

impl<'a, 'b> !Send for FileError<'a, 'b>

impl<'a, 'b> !Sync for FileError<'a, 'b>