Struct ladspa::Port
[−]
[src]
pub struct Port { pub name: &'static str, pub desc: PortDescriptor, pub hint: Option<ControlHint>, pub default: Option<DefaultValue>, pub lower_bound: Option<Data>, pub upper_bound: Option<Data>, }
Represents an input or output to the plugin representing either audio or control data.
Fields
name: &'static str
The name of the port. For control ports, this will likely be shown by the host in an automatically generated GUI next to the control. For audio ports, it is mostly just for identification in your code but some hosts may display it.
desc: PortDescriptor
Describes the type of port: audio or control, input or output.
hint: Option<ControlHint>
Most useful on control inputs but can be used on any type of port.
default: Option<DefaultValue>
Most useful on control inputs but can be used on any type of port.
lower_bound: Option<Data>
The lower bound of values to accepted by default (the host may ignore this).
upper_bound: Option<Data>
The upper bound of values to accepted by default (the host may ignore this).
Trait Implementations
impl Copy for Port
[src]
impl Clone for Port
[src]
fn clone(&self) -> Port
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more