Struct rsynth::test_utilities::TestPlugin [−][src]
A plugin useful for writing automated tests.
Implementations
impl<S, E, M> TestPlugin<S, E, M>
[src]
pub fn new(
expected_inputs: Vec<AudioChunk<S>>,
provided_outputs: Vec<AudioChunk<S>>,
expected_events: Vec<Vec<E>>,
provided_events: Vec<Vec<E>>,
meta: M
) -> Self
[src]
expected_inputs: Vec<AudioChunk<S>>,
provided_outputs: Vec<AudioChunk<S>>,
expected_events: Vec<Vec<E>>,
provided_events: Vec<Vec<E>>,
meta: M
) -> Self
pub fn check_last(&self)
[src]
Trait Implementations
impl<S, E, M> AudioHandler for TestPlugin<S, E, M> where
M: AudioHandler,
[src]
M: AudioHandler,
fn set_sample_rate(&mut self, sample_rate: f64)
[src]
impl<S, E, M> AudioHandlerMeta for TestPlugin<S, E, M> where
M: AudioHandlerMeta,
[src]
M: AudioHandlerMeta,
fn max_number_of_audio_inputs(&self) -> usize
[src]
fn max_number_of_audio_outputs(&self) -> usize
[src]
impl<S, E, M, C> ContextualAudioRenderer<S, C> for TestPlugin<S, E, M> where
S: PartialEq + Debug + Copy,
C: EventHandler<E>,
[src]
S: PartialEq + Debug + Copy,
C: EventHandler<E>,
fn render_buffer(
&mut self,
buffer: &mut AudioBufferInOut<'_, '_, '_, '_, S>,
context: &mut C
)
[src]
&mut self,
buffer: &mut AudioBufferInOut<'_, '_, '_, '_, S>,
context: &mut C
)
impl<S, E, M> EventHandler<E> for TestPlugin<S, E, M> where
E: PartialEq + Debug,
[src]
E: PartialEq + Debug,
fn handle_event(&mut self, event: E)
[src]
Auto Trait Implementations
impl<S, E, M> RefUnwindSafe for TestPlugin<S, E, M> where
E: RefUnwindSafe,
M: RefUnwindSafe,
S: RefUnwindSafe,
E: RefUnwindSafe,
M: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, E, M> Send for TestPlugin<S, E, M> where
E: Send,
M: Send,
S: Send,
E: Send,
M: Send,
S: Send,
impl<S, E, M> Sync for TestPlugin<S, E, M> where
E: Sync,
M: Sync,
S: Sync,
E: Sync,
M: Sync,
S: Sync,
impl<S, E, M> Unpin for TestPlugin<S, E, M> where
E: Unpin,
M: Unpin,
S: Unpin,
E: Unpin,
M: Unpin,
S: Unpin,
impl<S, E, M> UnwindSafe for TestPlugin<S, E, M> where
E: UnwindSafe,
M: UnwindSafe,
S: UnwindSafe,
E: UnwindSafe,
M: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<S, T> Duplex<S> for T where
T: FromSample<S> + ToSample<S>,
T: FromSample<S> + ToSample<S>,
impl<T, E> EventHandlerExt<E> for T where
T: EventHandler<E> + ?Sized,
[src]
T: EventHandler<E> + ?Sized,
impl<T> From<T> for T
[src]
impl<S> FromSample<S> for S
pub fn from_sample_(s: S) -> S
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> ToSample<U> for T where
U: FromSample<T>,
U: FromSample<T>,
pub fn to_sample_(self) -> U
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,