pub struct MockAudioApi { /* private fields */ }Available on crate feature
audio_api only.Implementations§
Source§impl MockAudioApi
impl MockAudioApi
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 MockAudioApi
impl MockAudioApi
Sourcepub fn expect_get_audio_default_sink(&mut self) -> &mut Expectation
pub fn expect_get_audio_default_sink(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_audio_default_sink method
Sourcepub fn expect_get_audio_default_source(&mut self) -> &mut Expectation
pub fn expect_get_audio_default_source(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_audio_default_source method
Sourcepub fn expect_get_audio_sinks(&mut self) -> &mut Expectation
pub fn expect_get_audio_sinks(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_audio_sinks method
Sourcepub fn expect_get_audio_sources(&mut self) -> &mut Expectation
pub fn expect_get_audio_sources(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_audio_sources method
Trait Implementations§
Source§impl AudioApi for MockAudioApi
impl AudioApi for MockAudioApi
Source§fn get_audio_default_sink<'accept_language, 'life0, 'async_trait>(
&'life0 self,
accept_language: Option<&'accept_language str>,
) -> Pin<Box<dyn Future<Output = Result<AudioSinkDto, Error<GetAudioDefaultSinkError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'accept_language: 'async_trait,
'life0: 'async_trait,
fn get_audio_default_sink<'accept_language, 'life0, 'async_trait>(
&'life0 self,
accept_language: Option<&'accept_language str>,
) -> Pin<Box<dyn Future<Output = Result<AudioSinkDto, Error<GetAudioDefaultSinkError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'accept_language: 'async_trait,
'life0: 'async_trait,
GET /audio/defaultsink
Source§fn get_audio_default_source<'accept_language, 'life0, 'async_trait>(
&'life0 self,
accept_language: Option<&'accept_language str>,
) -> Pin<Box<dyn Future<Output = Result<AudioSourceDto, Error<GetAudioDefaultSourceError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'accept_language: 'async_trait,
'life0: 'async_trait,
fn get_audio_default_source<'accept_language, 'life0, 'async_trait>(
&'life0 self,
accept_language: Option<&'accept_language str>,
) -> Pin<Box<dyn Future<Output = Result<AudioSourceDto, Error<GetAudioDefaultSourceError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'accept_language: 'async_trait,
'life0: 'async_trait,
GET /audio/defaultsource
Source§fn get_audio_sinks<'accept_language, 'life0, 'async_trait>(
&'life0 self,
accept_language: Option<&'accept_language str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<AudioSinkDto>, Error<GetAudioSinksError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'accept_language: 'async_trait,
'life0: 'async_trait,
fn get_audio_sinks<'accept_language, 'life0, 'async_trait>(
&'life0 self,
accept_language: Option<&'accept_language str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<AudioSinkDto>, Error<GetAudioSinksError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'accept_language: 'async_trait,
'life0: 'async_trait,
GET /audio/sinks
Source§fn get_audio_sources<'accept_language, 'life0, 'async_trait>(
&'life0 self,
accept_language: Option<&'accept_language str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<AudioSourceDto>, Error<GetAudioSourcesError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'accept_language: 'async_trait,
'life0: 'async_trait,
fn get_audio_sources<'accept_language, 'life0, 'async_trait>(
&'life0 self,
accept_language: Option<&'accept_language str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<AudioSourceDto>, Error<GetAudioSourcesError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'accept_language: 'async_trait,
'life0: 'async_trait,
GET /audio/sources
Source§impl Debug for MockAudioApi
impl Debug for MockAudioApi
Auto Trait Implementations§
impl Freeze for MockAudioApi
impl RefUnwindSafe for MockAudioApi
impl Send for MockAudioApi
impl Sync for MockAudioApi
impl Unpin for MockAudioApi
impl UnwindSafe for MockAudioApi
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