pub struct MockClientController { /* private fields */ }
Expand description
Tracks call information for a MockClient
instance (including its clones).
Implementations§
Source§impl MockClientController
impl MockClientController
Sourcepub fn publish_count(&self) -> usize
pub fn publish_count(&self) -> usize
Return the number of .publish()
calls made to the client.
Sourcepub fn subscribe_count(&self) -> usize
pub fn subscribe_count(&self) -> usize
Return the number of .subscribe()
calls made to the client.
Sourcepub fn unsubscribe_count(&self) -> usize
pub fn unsubscribe_count(&self) -> usize
Return the number of .unsubscribe()
calls made to the client.
Sourcepub fn call_sequence(&self) -> Vec<MockClientCall>
pub fn call_sequence(&self) -> Vec<MockClientCall>
Return a snapshot of the sequence of calls made to the mocked client so far
Sourcepub fn reset_mock(&self)
pub fn reset_mock(&self)
Reset the mock, clearing all prior call information and/or configuration
Auto Trait Implementations§
impl Freeze for MockClientController
impl RefUnwindSafe for MockClientController
impl Send for MockClientController
impl Sync for MockClientController
impl Unpin for MockClientController
impl UnwindSafe for MockClientController
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more