Struct rsynth::backend::combined::MidiWriterWrapper[][src]

pub struct MidiWriterWrapper<W> where
    W: MidiWriter
{ /* fields omitted */ }

A wrapper around a midi writer that implements EventHandler<Timed<RawMidiEvent>> by queueing the events, which can then be written to the encapsulated MidiWriter by calling step_frames.

Implementations

impl<W> MidiWriterWrapper<W> where
    W: MidiWriter
[src]

pub fn new(inner: W, micro_seconds_per_frame: f64) -> Self[src]

pub fn step_frames(&mut self, number_of_frames: u64)[src]

Trait Implementations

impl<W> EventHandler<Timed<RawMidiEvent>> for MidiWriterWrapper<W> where
    W: MidiWriter
[src]

impl<W> HostInterface for MidiWriterWrapper<W> where
    W: MidiWriter
[src]

impl<W> Stop for MidiWriterWrapper<W> where
    W: MidiWriter
[src]

Auto Trait Implementations

impl<W> RefUnwindSafe for MidiWriterWrapper<W> where
    W: RefUnwindSafe

impl<W> Send for MidiWriterWrapper<W> where
    W: Send

impl<W> Sync for MidiWriterWrapper<W> where
    W: Sync

impl<W> Unpin for MidiWriterWrapper<W> where
    W: Unpin

impl<W> UnwindSafe for MidiWriterWrapper<W> where
    W: 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.