Struct mockall::examples::mock_ffi::__ffi_func::Context [−][src]
pub struct Context { /* fields omitted */ }
Using automock directly on an extern block is deprecated. Instead, wrap the extern block in a module, and automock that, like #[automock] mod ffi { extern “C” { fn foo … } }
Expand description
Manages the context for expectations of static methods.
Expectations on this method will be validated and cleared when
the Context
object drops. The Context
object does not
provide any form of synchronization, so multiple tests that set
expectations on the same static method must provide their own.
Implementations
👎 Deprecated since 0.9.0: Using automock directly on an extern block is deprecated. Instead, wrap the extern block in a module, and automock that, like #[automock] mod ffi { extern “C” { fn foo … } }
Using automock directly on an extern block is deprecated. Instead, wrap the extern block in a module, and automock that, like #[automock] mod ffi { extern “C” { fn foo … } }
Verify that all current expectations for this method are satisfied and clear them.
👎 Deprecated since 0.9.0: Using automock directly on an extern block is deprecated. Instead, wrap the extern block in a module, and automock that, like #[automock] mod ffi { extern “C” { fn foo … } }
Using automock directly on an extern block is deprecated. Instead, wrap the extern block in a module, and automock that, like #[automock] mod ffi { extern “C” { fn foo … } }
Create a new expectation for this method.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Context
impl !UnwindSafe for Context