pub unsafe trait PortSpec: Sized {
// Required methods
fn jack_port_type(&self) -> &str;
fn jack_flags(&self) -> PortFlags;
fn jack_buffer_size(&self) -> c_ulong;
}Expand description
Defines the configuration for a certain port to JACK, ie 32 bit floating audio input, 8 bit raw midi output, etc…
§Safety
This trait is unsafe because it may depend on interpretting raw bytes.
Required Methods§
Sourcefn jack_port_type(&self) -> &str
fn jack_port_type(&self) -> &str
String used by JACK upon port creation to identify the port type.
Sourcefn jack_flags(&self) -> PortFlags
fn jack_flags(&self) -> PortFlags
Flags used by jack upon port creation.
Sourcefn jack_buffer_size(&self) -> c_ulong
fn jack_buffer_size(&self) -> c_ulong
Size used by jack upon port creation.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.