pub struct JackPort { /* private fields */ }
Expand description
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
.
Implementations
sourceimpl JackPort
impl JackPort
pub fn as_ptr(&self) -> JackPortPtr
pub unsafe fn from_ptr(ptr: JackPortPtr) -> Self
sourcepub fn set_short_name(&mut self, name: &str) -> JackResult<()>
pub fn set_short_name(&mut self, name: &str) -> JackResult<()>
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.
sourcepub fn get_name(&self, short: bool) -> JackResult<Cow<'_, str>>
pub fn get_name(&self, short: bool) -> JackResult<Cow<'_, str>>
Get the name of a port (short or long, determined by the short
argument).
sourcepub fn get_type(&self) -> JackResult<Cow<'_, str>>
pub fn get_type(&self) -> JackResult<Cow<'_, str>>
Get the type string of a port.
sourcepub unsafe fn get_name_raw(&self, short: bool) -> JackResult<*const c_char>
pub unsafe fn get_name_raw(&self, short: bool) -> JackResult<*const c_char>
Get the raw pointer to the name of a port.
Safety
This function is not intended for external consumption.
sourcepub fn get_flags(&self) -> JackPortFlags
pub fn get_flags(&self) -> JackPortFlags
Get the JackPortFlags of the port.