Module mockall::examples::mock_ffi::__ffi_func
source · 👎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 … } }
Structs
ContextDeprecated
Manages the context for expectations of static methods.
ExpectationDeprecated
Expectation type for methods that return a
'static
type.
This is the type returned by the expect_*
methods.ExpectationGuardDeprecated
Like an
&Expectation
but
protected by a Mutex guard. Useful for mocking static
methods. Forwards accesses to an Expectation
object.