pub enum TestError {
Setup(String),
Rpc(RpcError),
Transport(TransportError),
Assertion(String),
}Expand description
Error type for test scenarios.
Variants§
Setup(String)
Transport creation failed.
Rpc(RpcError)
RPC call failed.
Transport(TransportError)
Transport error.
Assertion(String)
Assertion failed.
Trait Implementations§
Source§impl Error for TestError
impl Error for TestError
1.30.0§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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<TransportError> for TestError
impl From<TransportError> for TestError
Source§fn from(e: TransportError) -> Self
fn from(e: TransportError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TestError
impl !RefUnwindSafe for TestError
impl Send for TestError
impl Sync for TestError
impl Unpin for TestError
impl !UnwindSafe for TestError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more