Struct tower_web::extract::Error [−][src]
pub struct Error { /* fields omitted */ }Errors that can happen while extracting data from an HTTP request.
Methods
impl Error[src]
impl Errorpub fn missing_argument() -> Error[src]
pub fn missing_argument() -> ErrorThe data is missing from the HTTP request.
pub fn is_missing_argument(&self) -> bool[src]
pub fn is_missing_argument(&self) -> boolReturns true when the error represents missing data from the HTTP
request.
pub fn invalid_argument<T: ToString>(reason: &T) -> Error[src]
pub fn invalid_argument<T: ToString>(reason: &T) -> ErrorThe data is in an invalid format and cannot be extracted.
pub fn is_invalid_argument(&self) -> bool[src]
pub fn is_invalid_argument(&self) -> boolReturns true when the data is in an invalid format and cannot be
extracted.
Trait Implementations
impl Debug for Error[src]
impl Debug for Errorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<Error> for Error[src]
impl From<Error> for Error