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>,
}
Expand description
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§
Auto Trait Implementations§
impl Freeze for Port
impl RefUnwindSafe for Port
impl Send for Port
impl Sync for Port
impl Unpin for Port
impl UnwindSafe for Port
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