#[non_exhaustive]pub enum TestkitError {
Io(Error),
ReplayExhausted {
requested: usize,
},
ReplayNoMatch {
left: usize,
},
Inner(ProviderError),
}Expand description
Unified lc-testkit error.
Bridges via [From<TestkitError> for ProviderError], so the record/replay provider
can be fed directly into generic entry points like chains that require
L::Error: Into<ProviderError>.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io(Error)
IO error during recording/replaying (reading/writing files, etc.).
ReplayExhausted
Replay queue exhausted: more requests than recorded exchanges.
ReplayNoMatch
No recording matches the request message signature under ReplayStrategy::Exact
(explicit error, no silent FIFO fallback); left is the remaining queue length,
useful for debugging field drift between the recording and the request.
Inner(ProviderError)
Inner model error, passed through losslessly from the real provider error.
Trait Implementations§
Source§impl Debug for TestkitError
impl Debug for TestkitError
Source§impl Display for TestkitError
impl Display for TestkitError
Source§impl Error for TestkitError
impl Error for TestkitError
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()
Source§impl From<Error> for TestkitError
impl From<Error> for TestkitError
Source§impl From<ProviderError> for TestkitError
impl From<ProviderError> for TestkitError
Source§fn from(source: ProviderError) -> Self
fn from(source: ProviderError) -> Self
Converts to this type from the input type.
Source§impl From<TestkitError> for ProviderError
impl From<TestkitError> for ProviderError
Source§fn from(e: TestkitError) -> Self
fn from(e: TestkitError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TestkitError
impl !UnwindSafe for TestkitError
impl Freeze for TestkitError
impl Send for TestkitError
impl Sync for TestkitError
impl Unpin for TestkitError
impl UnsafeUnpin for TestkitError
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