pub enum PortType {
Show 13 variants
Signal,
SignalFloat,
IntSignal,
Float,
Int,
Bang,
List,
Symbol,
Any,
MultiChannelSignal,
MultiChannelSignalFloat,
Dynamic,
Inactive,
}Expand description
Port (inlet/outlet) type for Max objects
Variants§
Signal
Signal only (audio rate only)
SignalFloat
Signal + Float dual (controlled by float when no signal connection)
IntSignal
Int + Signal dual
Float
Float only
Int
Int only
Bang
Bang only
List
List only
Symbol
Symbol only
Any
Any message (bang, int, float, list, symbol)
MultiChannelSignal
Multi-channel signal
MultiChannelSignalFloat
Multi-channel signal + float
Dynamic
Depends on argument type (placeholder for variable objects)
Inactive
Inactive inlet/outlet
Implementations§
Source§impl PortType
impl PortType
Sourcepub fn from_xml_type(type_str: &str) -> Self
pub fn from_xml_type(type_str: &str) -> Self
Convert XML type attribute string to PortType. Normalizes case differences and notation variants (/, “ or “, “, “).
Sourcepub fn accepts_signal(&self) -> bool
pub fn accepts_signal(&self) -> bool
Whether this port accepts Signal
Sourcepub fn accepts_control(&self) -> bool
pub fn accepts_control(&self) -> bool
Whether this port accepts Control messages
Trait Implementations§
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