pub struct MockSysteminfoApi { /* private fields */ }Available on crate feature
systeminfo_api only.Implementations§
Source§impl MockSysteminfoApi
impl MockSysteminfoApi
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 MockSysteminfoApi
impl MockSysteminfoApi
Sourcepub fn expect_get_system_information(&mut self) -> &mut Expectation
pub fn expect_get_system_information(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_system_information method
Sourcepub fn expect_get_uo_m_information(&mut self) -> &mut Expectation
pub fn expect_get_uo_m_information(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_uo_m_information method
Trait Implementations§
Source§impl Debug for MockSysteminfoApi
impl Debug for MockSysteminfoApi
Source§impl Default for MockSysteminfoApi
impl Default for MockSysteminfoApi
Source§impl SysteminfoApi for MockSysteminfoApi
impl SysteminfoApi for MockSysteminfoApi
Source§fn get_system_information<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<SystemInfoBean, Error<GetSystemInformationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_system_information<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<SystemInfoBean, Error<GetSystemInformationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /systeminfo
Source§fn get_uo_m_information<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<UoMInfoBean, Error<GetUoMInformationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_uo_m_information<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<UoMInfoBean, Error<GetUoMInformationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /systeminfo/uom
Auto Trait Implementations§
impl Freeze for MockSysteminfoApi
impl RefUnwindSafe for MockSysteminfoApi
impl Send for MockSysteminfoApi
impl Sync for MockSysteminfoApi
impl Unpin for MockSysteminfoApi
impl UnwindSafe for MockSysteminfoApi
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