pub struct MockCommitHandler { /* private fields */ }Implementations§
Source§impl MockCommitHandler
impl MockCommitHandler
Sourcepub fn checkpoint(&mut self)
pub fn checkpoint(&mut self)
Validate that all current expectations for all methods have been satisfied, and discard them.
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new mock object with no expectations.
This method will not be generated if the real struct
already has a new method. However, it will be
generated if the struct implements a trait with a new
method. The trait’s new method can still be called
like <MockX as TraitY>::new
Source§impl MockCommitHandler
impl MockCommitHandler
Sourcepub fn expect_run(&mut self) -> &mut Expectation
pub fn expect_run(&mut self) -> &mut Expectation
Create an Expectation for mocking the run method
Trait Implementations§
Source§impl CommitHandler for MockCommitHandler
impl CommitHandler for MockCommitHandler
Source§impl Debug for MockCommitHandler
impl Debug for MockCommitHandler
Auto Trait Implementations§
impl Freeze for MockCommitHandler
impl RefUnwindSafe for MockCommitHandler
impl Send for MockCommitHandler
impl Sync for MockCommitHandler
impl Unpin for MockCommitHandler
impl UnwindSafe for MockCommitHandler
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request