pub enum MockError {
Exhausted,
MethodMismatch,
TargetMismatch,
BodyMismatch,
ResponseBufferTooSmall,
CursorOverflow,
ConcurrentRequest,
InvalidFixtureMetadata,
}Expand description
Deterministic mock transport failure.
Variants§
Exhausted
No expected exchange remains.
MethodMismatch
HTTP method differs from the next expectation.
TargetMismatch
Request target differs from the next expectation.
BodyMismatch
Request body differs from the next expectation.
ResponseBufferTooSmall
Caller response buffer cannot hold the complete fixture body.
CursorOverflow
Internal cursor arithmetic failed closed.
ConcurrentRequest
Another request changed the ordered cursor during this exchange.
InvalidFixtureMetadata
Fixture metadata could not be represented by the core transport.
Trait Implementations§
impl Copy for MockError
impl Eq for MockError
Source§impl Error for MockError
impl Error for MockError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
impl StructuralPartialEq for MockError
Auto Trait Implementations§
impl Freeze for MockError
impl RefUnwindSafe for MockError
impl Send for MockError
impl Sync for MockError
impl Unpin for MockError
impl UnsafeUnpin for MockError
impl UnwindSafe for MockError
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