Struct finchers_core::error::ServerError
[−]
[src]
pub struct ServerError { /* fields omitted */ }
An HTTP error which represents 500 Internal Server Error
Methods
impl ServerError
[src]
pub fn new<S>(message: S) -> ServerError where
S: Into<Cow<'static, str>>,
[src]
S: Into<Cow<'static, str>>,
pub fn from_fail<E>(fail: E) -> ServerError where
E: Into<Error>,
[src]
E: Into<Error>,
Trait Implementations
impl<E: Into<Error>> From<E> for ServerError
[src]
impl Debug for ServerError
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Display for ServerError
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl HttpError for ServerError
[src]
fn status_code(&self) -> StatusCode
[src]
Return the HTTP status code associated with this error type.
fn as_fail(&self) -> Option<&Fail>
[src]
Return the reference to a value of Fail
if exists.
fn append_headers(&self, headers: &mut HeaderMap<HeaderValue>)
[src]
Append a set of header values to the header map.