[−][src]Struct tower_web::error::ErrorKind
A list specifying the general categories of Tower Web errors.
Methods
impl ErrorKind[src]
pub fn bad_request() -> ErrorKind[src]
please use 'Error::from(http::StatusCode::BAD_REQUEST)' instead
Returns a new ErrorKind value representing a 400 -- bad request error.
pub fn is_bad_request(&self) -> bool[src]
please use 'kind() == http::StatusCode::BAD_REQUEST' instead
Returns true if self represents a 400 -- bad request error
pub fn unauthorized() -> ErrorKind[src]
please use 'Error::from(http::StatusCode::UNAUTHORIZED)' instead
Returns a new ErrorKind value representing a 401 -- unauthorized error.
pub fn forbidden() -> ErrorKind[src]
please use 'Error::from(http::StatusCode::FORBIDDEN)' instead
Returns a new ErrorKind value representing a 403 -- forbidden error.
pub fn not_found() -> ErrorKind[src]
please use 'Error::from(http::StatusCode::NOT_FOUND)' instead
Returns a new ErrorKind value representing a 404 -- not found error
pub fn is_not_found(&self) -> bool[src]
please use 'kind() == http::StatusCode::NOT_FOUND' instead
Returns true if self represents a 404 -- not found error
pub fn unprocessable_entity() -> ErrorKind[src]
please use 'Error::from(http::StatusCode::UNPROCESSABLE_ENTITY)' instead
Returns a new ErrorKind value representing a 422 -- unprocessable entity error
pub fn internal() -> ErrorKind[src]
please use 'Error::from(http::StatusCode::INTERNAL_SERVER_ERROR)' instead
Returns a new ErrorKind value representing 500 -- internal server
error.
pub fn is_internal(&self) -> bool[src]
please use 'kind() == http::StatusCode::INTERNAL_SERVER_ERROR' instead
Returns true if self represents a 500 -- internal server error.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Same for T
type Output = T
Should always be Self