Struct rsynth::test_utilities::TestPlugin[][src]

pub struct TestPlugin<S, E, M> { /* fields omitted */ }

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]

pub fn check_last(&self)[src]

Trait Implementations

impl<S, E, M> AudioHandler for TestPlugin<S, E, M> where
    M: AudioHandler
[src]

impl<S, E, M> AudioHandlerMeta for TestPlugin<S, E, M> where
    M: AudioHandlerMeta
[src]

impl<S, E, M, C> ContextualAudioRenderer<S, C> for TestPlugin<S, E, M> where
    S: PartialEq + Debug + Copy,
    C: EventHandler<E>, 
[src]

impl<S, E, M> EventHandler<E> for TestPlugin<S, E, M> where
    E: PartialEq + Debug
[src]

Auto Trait Implementations

impl<S, E, M> RefUnwindSafe for TestPlugin<S, E, M> where
    E: RefUnwindSafe,
    M: RefUnwindSafe,
    S: RefUnwindSafe

impl<S, E, M> Send for TestPlugin<S, E, M> where
    E: Send,
    M: Send,
    S: Send

impl<S, E, M> Sync for TestPlugin<S, E, M> where
    E: Sync,
    M: Sync,
    S: Sync

impl<S, E, M> Unpin for TestPlugin<S, E, M> where
    E: Unpin,
    M: Unpin,
    S: Unpin

impl<S, E, M> UnwindSafe for TestPlugin<S, E, M> where
    E: UnwindSafe,
    M: UnwindSafe,
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<S, T> Duplex<S> for T where
    T: FromSample<S> + ToSample<S>, 

impl<T, E> EventHandlerExt<E> for T where
    T: EventHandler<E> + ?Sized
[src]

impl<T> From<T> for T[src]

impl<S> FromSample<S> for S

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> ToSample<U> for T where
    U: FromSample<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.