Struct sqa_engine::jack::JackPort
[−]
[src]
pub struct JackPort { /* fields omitted */ }
An object used for moving data of any type in or out of the client.
Ports may be connected in various ways.
Each port has a short name. The port's full name contains the name of the client
concatenated with a colon (:) followed by its short name. The jack_port_name_size()
is the maximum length of this full name. Exceeding that will cause port
registration to fail and return ProgrammerError
.
Methods
impl JackPort
[src]
fn as_ptr(&self) -> *mut Struct__jack_port
unsafe fn from_ptr(ptr: *mut Struct__jack_port) -> JackPort
fn set_short_name(&mut self, name: &str) -> Result<(), Error>
Modify a port's short name. May be called at any time.
If the resulting full name (including the "client_name:" prefix) is longer than jack_port_name_size(), it will be truncated.
fn get_name(&self, short: bool) -> Result<Cow<str>, Error>
Get the name of a port (short or long, determined by the short
argument).
fn get_type(&self) -> Result<Cow<str>, Error>
Get the type string of a port.
unsafe fn get_name_raw(&self, short: bool) -> Result<*const i8, Error>
Get the raw pointer to the name of a port.
Safety
This function is not intended for external consumption.
fn get_flags(&self) -> JackPortFlags
Get the JackPortFlags of the port.
Trait Implementations
impl Clone for JackPort
[src]
fn clone(&self) -> JackPort
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more