pub struct Timed<E> {
pub time_in_frames: u32,
pub event: E,
}
Expand description
Timed<E>
adds timing to an event.
Fields§
§time_in_frames: u32
The offset (in frames) of the event relative to the start of the audio buffer.
E.g. when time_in_frames
is 6, this means that
the event happens on the sixth frame of the buffer in the call to
the render_buffer
method of the Plugin
trait.
event: E
The underlying event.
Implementations§
Trait Implementations§
source§impl<W> EventHandler<Timed<RawMidiEvent>> for MidiWriterWrapper<W>where
W: MidiWriter,
impl<W> EventHandler<Timed<RawMidiEvent>> for MidiWriterWrapper<W>where
W: MidiWriter,
fn handle_event(&mut self, event: Timed<RawMidiEvent>)
source§impl<E: PartialEq> PartialEq for Timed<E>
impl<E: PartialEq> PartialEq for Timed<E>
impl<E> Copy for Timed<E>where
E: Copy,
impl<E: Eq> Eq for Timed<E>
impl<E> StructuralEq for Timed<E>
impl<E> StructuralPartialEq for Timed<E>
Auto Trait Implementations§
impl<E> RefUnwindSafe for Timed<E>where
E: RefUnwindSafe,
impl<E> Send for Timed<E>where
E: Send,
impl<E> Sync for Timed<E>where
E: Sync,
impl<E> Unpin for Timed<E>where
E: Unpin,
impl<E> UnwindSafe for Timed<E>where
E: UnwindSafe,
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