Struct rsynth::backend::combined::MidiWriterWrapper [−][src]
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]
W: MidiWriter,
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]
W: MidiWriter,
fn handle_event(&mut self, event: Timed<RawMidiEvent>)
[src]
impl<W> HostInterface for MidiWriterWrapper<W> where
W: MidiWriter,
[src]
W: MidiWriter,
fn output_initialized(&self) -> bool
[src]
fn stop(&mut self)
[src]
impl<W> Stop for MidiWriterWrapper<W> where
W: MidiWriter,
[src]
W: MidiWriter,
Auto Trait Implementations
impl<W> RefUnwindSafe for MidiWriterWrapper<W> where
W: RefUnwindSafe,
W: RefUnwindSafe,
impl<W> Send for MidiWriterWrapper<W> where
W: Send,
W: Send,
impl<W> Sync for MidiWriterWrapper<W> where
W: Sync,
W: Sync,
impl<W> Unpin for MidiWriterWrapper<W> where
W: Unpin,
W: Unpin,
impl<W> UnwindSafe for MidiWriterWrapper<W> where
W: UnwindSafe,
W: 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>,