pub enum MockError {
Exhausted,
MethodMismatch,
TargetMismatch,
BodyMismatch,
ResponseBufferTooSmall,
CursorOverflow,
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.
InvalidFixtureMetadata
Fixture metadata could not be represented by the core transport.
Trait Implementations§
impl Copy for MockError
impl Eq for MockError
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