pub trait AsyncMock: Mock {
// Required method
async fn verify_async(&self) -> TestingResult<()>;
}Expand description
异步 Mock 行为 trait
Required Methods§
Sourceasync fn verify_async(&self) -> TestingResult<()>
async fn verify_async(&self) -> TestingResult<()>
异步验证期望
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.