Enum vst::event::Event

source ·
pub enum Event<'a> {
    Midi(MidiEvent),
    SysEx(SysExEvent<'a>),
    Deprecated(Event),
}
Expand description

A VST event.

Variants§

§

Midi(MidiEvent)

A midi event.

These are sent to the plugin before Plugin::processing() or Plugin::processing_f64() is called.

§

SysEx(SysExEvent<'a>)

A system exclusive event.

This is just a block of data and it is up to the plugin to interpret this. Generally used by midi controllers.

§

Deprecated(Event)

A deprecated event.

Passes the raw midi event structure along with this so that implementors can handle optionally handle this event.

Implementations§

Creates a high-level event from the given low-level API event.

Safety

You must ensure that the given pointer refers to a valid event of the correct event type. For example, if the event type is api::EventType::SysEx, it should point to a SysExEvent. In case of a SysExEvent, system_data and data_size must be correct.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
writes an event into the given placeholder memory location

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.