pub struct MockEventsApi { /* private fields */ }Available on crate feature
events_api only.Implementations§
Source§impl MockEventsApi
impl MockEventsApi
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 MockEventsApi
impl MockEventsApi
Sourcepub fn expect_get_events(&mut self) -> &mut Expectation
pub fn expect_get_events(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_events method
Sourcepub fn expect_init_new_state_tacker(&mut self) -> &mut Expectation
pub fn expect_init_new_state_tacker(&mut self) -> &mut Expectation
Create an Expectation for mocking the init_new_state_tacker method
Sourcepub fn expect_update_item_list_for_state_updates(&mut self) -> &mut Expectation
pub fn expect_update_item_list_for_state_updates(&mut self) -> &mut Expectation
Create an Expectation for mocking the update_item_list_for_state_updates method
Trait Implementations§
Source§impl Debug for MockEventsApi
impl Debug for MockEventsApi
Source§impl Default for MockEventsApi
impl Default for MockEventsApi
Source§impl EventsApi for MockEventsApi
impl EventsApi for MockEventsApi
Source§fn get_events<'topics, 'life0, 'async_trait>(
&'life0 self,
topics: Option<&'topics str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<GetEventsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'topics: 'async_trait,
'life0: 'async_trait,
fn get_events<'topics, 'life0, 'async_trait>(
&'life0 self,
topics: Option<&'topics str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<GetEventsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'topics: 'async_trait,
'life0: 'async_trait,
GET /events
Source§fn init_new_state_tacker<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error<InitNewStateTackerError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn init_new_state_tacker<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error<InitNewStateTackerError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /events/states
Source§fn update_item_list_for_state_updates<'connection_id, 'request_body, 'life0, 'async_trait>(
&'life0 self,
connection_id: &'connection_id str,
request_body: Option<Vec<String>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<UpdateItemListForStateUpdatesError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'connection_id: 'async_trait,
'request_body: 'async_trait,
'life0: 'async_trait,
fn update_item_list_for_state_updates<'connection_id, 'request_body, 'life0, 'async_trait>(
&'life0 self,
connection_id: &'connection_id str,
request_body: Option<Vec<String>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<UpdateItemListForStateUpdatesError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'connection_id: 'async_trait,
'request_body: 'async_trait,
'life0: 'async_trait,
POST /events/states/{connectionId}
Auto Trait Implementations§
impl Freeze for MockEventsApi
impl RefUnwindSafe for MockEventsApi
impl Send for MockEventsApi
impl Sync for MockEventsApi
impl Unpin for MockEventsApi
impl UnwindSafe for MockEventsApi
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