pub struct MockLoggingApi { /* private fields */ }Available on crate feature
logging_api only.Implementations§
Source§impl MockLoggingApi
impl MockLoggingApi
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 MockLoggingApi
impl MockLoggingApi
Sourcepub fn expect_get_logger(&mut self) -> &mut Expectation
pub fn expect_get_logger(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_logger method
Sourcepub fn expect_get_logger1(&mut self) -> &mut Expectation
pub fn expect_get_logger1(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_logger1 method
Sourcepub fn expect_put_logger(&mut self) -> &mut Expectation
pub fn expect_put_logger(&mut self) -> &mut Expectation
Create an Expectation for mocking the put_logger method
Sourcepub fn expect_remove_logger(&mut self) -> &mut Expectation
pub fn expect_remove_logger(&mut self) -> &mut Expectation
Create an Expectation for mocking the remove_logger method
Trait Implementations§
Source§impl Debug for MockLoggingApi
impl Debug for MockLoggingApi
Source§impl Default for MockLoggingApi
impl Default for MockLoggingApi
Source§impl LoggingApi for MockLoggingApi
impl LoggingApi for MockLoggingApi
Source§fn get_logger<'logger_name, 'life0, 'async_trait>(
&'life0 self,
logger_name: &'logger_name str,
) -> Pin<Box<dyn Future<Output = Result<LoggerInfo, Error<GetLoggerError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'logger_name: 'async_trait,
'life0: 'async_trait,
fn get_logger<'logger_name, 'life0, 'async_trait>(
&'life0 self,
logger_name: &'logger_name str,
) -> Pin<Box<dyn Future<Output = Result<LoggerInfo, Error<GetLoggerError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'logger_name: 'async_trait,
'life0: 'async_trait,
GET /logging/{loggerName}
Source§fn get_logger1<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<LoggerBean, Error<GetLogger1Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_logger1<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<LoggerBean, Error<GetLogger1Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /logging
Source§fn put_logger<'logger_name, 'logger_info, 'life0, 'async_trait>(
&'life0 self,
logger_name: &'logger_name str,
logger_info: LoggerInfo,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PutLoggerError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'logger_name: 'async_trait,
'logger_info: 'async_trait,
'life0: 'async_trait,
fn put_logger<'logger_name, 'logger_info, 'life0, 'async_trait>(
&'life0 self,
logger_name: &'logger_name str,
logger_info: LoggerInfo,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PutLoggerError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'logger_name: 'async_trait,
'logger_info: 'async_trait,
'life0: 'async_trait,
PUT /logging/{loggerName}
Source§fn remove_logger<'logger_name, 'life0, 'async_trait>(
&'life0 self,
logger_name: &'logger_name str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveLoggerError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'logger_name: 'async_trait,
'life0: 'async_trait,
fn remove_logger<'logger_name, 'life0, 'async_trait>(
&'life0 self,
logger_name: &'logger_name str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveLoggerError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'logger_name: 'async_trait,
'life0: 'async_trait,
DELETE /logging/{loggerName}
Auto Trait Implementations§
impl Freeze for MockLoggingApi
impl RefUnwindSafe for MockLoggingApi
impl Send for MockLoggingApi
impl Sync for MockLoggingApi
impl Unpin for MockLoggingApi
impl UnwindSafe for MockLoggingApi
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