pub struct MockMetaStore { /* private fields */ }Expand description
Metadata storage operations
Implementations§
Source§impl MockMetaStore
impl MockMetaStore
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 MockMetaStore
impl MockMetaStore
Sourcepub fn expect_save_hard_state(&mut self) -> &mut Expectation
pub fn expect_save_hard_state(&mut self) -> &mut Expectation
Create an Expectation for mocking the save_hard_state method
Sourcepub fn expect_load_hard_state(&mut self) -> &mut Expectation
pub fn expect_load_hard_state(&mut self) -> &mut Expectation
Create an Expectation for mocking the load_hard_state method
Sourcepub fn expect_flush(&mut self) -> &mut Expectation
pub fn expect_flush(&mut self) -> &mut Expectation
Create an Expectation for mocking the flush method
Sourcepub fn expect_flush_async(&mut self) -> &mut Expectation
pub fn expect_flush_async(&mut self) -> &mut Expectation
Create an Expectation for mocking the flush_async method
Trait Implementations§
Source§impl Debug for MockMetaStore
impl Debug for MockMetaStore
Source§impl Default for MockMetaStore
impl Default for MockMetaStore
Source§impl MetaStore for MockMetaStore
Metadata storage operations
impl MetaStore for MockMetaStore
Metadata storage operations
Auto Trait Implementations§
impl Freeze for MockMetaStore
impl RefUnwindSafe for MockMetaStore
impl Send for MockMetaStore
impl Sync for MockMetaStore
impl Unpin for MockMetaStore
impl UnwindSafe for MockMetaStore
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