pub struct PortLayout {
pub num_audio_in: u32,
pub num_audio_out: u32,
pub num_params: u32,
pub num_meters: u32,
pub accepts_midi_in: bool,
pub has_midi_out: bool,
}Expand description
Describes where each logical port sits in the flat LV2 port-index space.
Filled in once at instantiate() time.
Fields§
§num_audio_in: u32§num_audio_out: u32§num_params: u32§num_meters: u32§accepts_midi_in: boolWhether the input atom port should additionally advertise
midi:MidiEvent support. The port itself always exists - hosts
deliver time:Position through it regardless of whether the
plugin consumes MIDI.
has_midi_out: boolImplementations§
Source§impl PortLayout
impl PortLayout
pub fn audio_in_start(&self) -> u32
pub fn audio_out_start(&self) -> u32
pub fn control_start(&self) -> u32
pub fn meter_start(&self) -> u32
Sourcepub fn atom_in_port(&self) -> u32
pub fn atom_in_port(&self) -> u32
Index of the DSP input atom port. Always present: carries
time:Position (transport) for every plugin type and
additionally midi:MidiEvent for instruments / note effects.
pub fn midi_out_port(&self) -> Option<u32>
Sourcepub fn notify_out_port(&self) -> u32
pub fn notify_out_port(&self) -> u32
Index of the DSP→UI notification atom port. Always present: the
DSP writes host transport (and any future plugin-defined notify
messages) here, and the UI listens via ui:portNotification.
pub fn total(&self) -> u32
Trait Implementations§
Source§impl Clone for PortLayout
impl Clone for PortLayout
Source§fn clone(&self) -> PortLayout
fn clone(&self) -> PortLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PortLayout
impl RefUnwindSafe for PortLayout
impl Send for PortLayout
impl Sync for PortLayout
impl Unpin for PortLayout
impl UnsafeUnpin for PortLayout
impl UnwindSafe for PortLayout
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