pub struct MockTransport<'a> { /* private fields */ }Expand description
Ordered no-allocation mock implementation of BlockingTransport.
Implementations§
Source§impl<'a> MockTransport<'a>
impl<'a> MockTransport<'a>
Sourcepub const fn new(exchanges: &'a [MockExchange<'a>]) -> Self
pub const fn new(exchanges: &'a [MockExchange<'a>]) -> Self
Creates a mock over an ordered exchange slice.
Sourcepub const fn is_complete(&self) -> bool
pub const fn is_complete(&self) -> bool
Reports whether every expected exchange was consumed.
Trait Implementations§
Source§impl BlockingTransport for MockTransport<'_>
impl BlockingTransport for MockTransport<'_>
Auto Trait Implementations§
impl<'a> Freeze for MockTransport<'a>
impl<'a> RefUnwindSafe for MockTransport<'a>
impl<'a> Send for MockTransport<'a>
impl<'a> Sync for MockTransport<'a>
impl<'a> Unpin for MockTransport<'a>
impl<'a> UnsafeUnpin for MockTransport<'a>
impl<'a> UnwindSafe for MockTransport<'a>
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