pub struct MockSet(/* private fields */);Expand description
A set of mocks.
Implementations§
Source§impl MockSet
impl MockSet
pub fn contains(&self, mock: &Mock) -> bool
Sourcepub fn mock_with_options<F>(&mut self, priority: u8, limit: Option<usize>, f: F)
pub fn mock_with_options<F>(&mut self, priority: u8, limit: Option<usize>, f: F)
Builds and inserts a mock with options.
Sourcepub fn match_by_request(&self, request: &Request) -> Option<Mock>
pub fn match_by_request(&self, request: &Request) -> Option<Mock>
Matches a request to a mock.
Trait Implementations§
Source§impl FromIterator<Mock> for MockSet
impl FromIterator<Mock> for MockSet
Source§impl IntoIterator for MockSet
impl IntoIterator for MockSet
Auto Trait Implementations§
impl Freeze for MockSet
impl !RefUnwindSafe for MockSet
impl Send for MockSet
impl Sync for MockSet
impl Unpin for MockSet
impl UnsafeUnpin for MockSet
impl !UnwindSafe for MockSet
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