Struct sqa_jack::port::JackPort

source ·
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

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.

Get the name of a port (short or long, determined by the short argument).

Get the type string of a port.

Get the raw pointer to the name of a port.

Safety

This function is not intended for external consumption.

Get the JackPortFlags of the port.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.