pub enum PortType {
Signal,
Control,
Clock,
Feedback,
Param,
}Expand description
Type of a port - what kind of signal it carries
Variants§
Signal
Signal port - carries signal blocks (audio, sensor, etc.)
Control
Control signal port - carries modulation/automation
Clock
Clock signal port - carries timing information
Feedback
Feedback port - stores state between blocks
Param
Parameter port - for node parameters (special)
Implementations§
Source§impl PortType
impl PortType
Sourcepub const fn is_audio_rate(&self) -> bool
pub const fn is_audio_rate(&self) -> bool
Check if this port carries audio-rate signals
Sourcepub const fn is_control_rate(&self) -> bool
pub const fn is_control_rate(&self) -> bool
Check if this port carries control-rate signals
Trait Implementations§
impl Copy for PortType
impl Eq for PortType
impl StructuralPartialEq for PortType
Auto Trait Implementations§
impl Freeze for PortType
impl RefUnwindSafe for PortType
impl Send for PortType
impl Sync for PortType
impl Unpin for PortType
impl UnsafeUnpin for PortType
impl UnwindSafe for PortType
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