Enum asserhttp::AsserhttpError
source · pub enum AsserhttpError {
Show 22 variants
StatusMismatch {
actual: u16,
expected: u16,
},
HeaderValueMismatch {
key: HeaderKey,
actual: HeaderValue,
expected: HeaderValue,
},
HeaderAbsent {
key: HeaderKey,
},
HeaderPresent {
key: HeaderKey,
},
MultivaluedHeader {
key: HeaderKey,
values_count: usize,
actual_values: HeaderValues,
},
InvalidHeaderValuesSupplied {
key: HeaderKey,
},
HeaderValuesMismatch {
key: HeaderKey,
actual_values: HeaderValues,
expected: HeaderValues,
},
JsonBodyMismatch(String),
TextBodyMismatch {
actual: String,
expected: String,
},
BytesBodyMismatch {
actual: Vec<u8>,
expected: Vec<u8>,
},
RegexBodyMismatch {
actual: String,
regex: String,
},
BodyAbsent,
BodyPresent,
HttpError(String),
RegexError(String),
InternalError,
AnyError(Error),
HttpTypesError(Error),
JsonError(Error),
IoError(Error),
Utf8Error(Utf8Error),
ExternalError(String),
}
Variants§
StatusMismatch
HeaderValueMismatch
HeaderAbsent
HeaderPresent
MultivaluedHeader
InvalidHeaderValuesSupplied
HeaderValuesMismatch
JsonBodyMismatch(String)
TextBodyMismatch
BytesBodyMismatch
RegexBodyMismatch
BodyAbsent
BodyPresent
HttpError(String)
RegexError(String)
InternalError
AnyError(Error)
HttpTypesError(Error)
JsonError(Error)
IoError(Error)
Utf8Error(Utf8Error)
ExternalError(String)
Trait Implementations§
source§impl Debug for AsserhttpError
impl Debug for AsserhttpError
source§impl Display for AsserhttpError
impl Display for AsserhttpError
source§impl Error for AsserhttpError
impl Error for AsserhttpError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Error> for AsserhttpError
impl From<Error> for AsserhttpError
source§impl From<Error> for AsserhttpError
impl From<Error> for AsserhttpError
source§impl From<Error> for AsserhttpError
impl From<Error> for AsserhttpError
source§impl From<Error> for AsserhttpError
impl From<Error> for AsserhttpError
source§impl From<Error> for AsserhttpError
impl From<Error> for AsserhttpError
Auto Trait Implementations§
impl Freeze for AsserhttpError
impl !RefUnwindSafe for AsserhttpError
impl Send for AsserhttpError
impl Sync for AsserhttpError
impl Unpin for AsserhttpError
impl !UnwindSafe for AsserhttpError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more