We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c1be6c commit cc0f23aCopy full SHA for cc0f23a
src/common.rs
@@ -20,6 +20,10 @@ use std::{
20
/// Note that the implementation uses an `Arc<Mutex<...>>` internally, so a
21
/// cloned instance of the mock can be used to check the expectations of the
22
/// original instance that has been moved into a driver.
23
+///
24
+/// Optional Data type allows for storage of arbitrary state data in mocks.
25
+/// Mock data can be accessed via appropriate getter/setter methods, i.e. `mock_data()` and `set_mock_data()`.
26
27
#[derive(Debug, Clone)]
28
pub struct Generic<T: Clone + Debug + PartialEq, Data = ()> {
29
expected: Arc<Mutex<VecDeque<T>>>,
0 commit comments