Struct tower_web::error::ErrorKind [−][src]
pub struct ErrorKind { /* fields omitted */ }A list specifying the general categories of Tower Web errors.
Methods
impl ErrorKind[src]
impl ErrorKindpub fn bad_request() -> ErrorKind[src]
pub fn bad_request() -> ErrorKindReturns a new ErrorKind value representing a 400 -- bad request error.
pub fn is_bad_request(&self) -> bool[src]
pub fn is_bad_request(&self) -> boolReturns true if self represents a 400 -- bad request error
pub fn not_found() -> ErrorKind[src]
pub fn not_found() -> ErrorKindReturns a new ErrorKind value representing a 404 -- not found error
pub fn is_not_found(&self) -> bool[src]
pub fn is_not_found(&self) -> boolReturns true if self represents a 404 -- not found error
pub fn internal() -> ErrorKind[src]
pub fn internal() -> ErrorKindReturns a new ErrorKind value representing 500 -- internal server
error.
pub fn is_internal(&self) -> bool[src]
pub fn is_internal(&self) -> boolReturns true if self represents a 500 -- internal server error.