Trait rsynth::CommonMidiPortMeta[][src]

pub trait CommonMidiPortMeta: MidiHandlerMeta {
    fn midi_input_name(&self, index: usize) -> String { ... }
fn input_name<W: Write>(
        &self,
        buffer: &mut W,
        index: usize
    ) -> Result<(), Error> { ... }
fn midi_output_name(&self, index: usize) -> String { ... }
fn output_name<W: Write>(
        &self,
        buffer: &mut W,
        index: usize
    ) -> Result<(), Error> { ... } }

Provides some meta-data of the midi-ports used by the plugin or application to the host. This trait can be more conveniently implemented by implementing the Meta trait.

Provided methods

fn midi_input_name(&self, index: usize) -> String[src]

👎 Deprecated since 0.1.2:

Use or implement input_name instead.

The name of the midi input with the given index. You can assume that index is strictly smaller than Self::max_number_of_midi_inputs().

Note

When using the Jack backend, this function should not return an empty string.

Note

The default implementation of this method uses input_name.

fn input_name<W: Write>(
    &self,
    buffer: &mut W,
    index: usize
) -> Result<(), Error>
[src]

The name of the midi input with the given index. You can assume that index is strictly smaller than Self::max_number_of_midi_inputs().

Note

When using the Jack backend, the name should not be an empty string.

fn midi_output_name(&self, index: usize) -> String[src]

👎 Deprecated since 0.1.2:

Use or implement output_name instead.

The name of the midi output with the given index. You can assume that index is strictly smaller than Self::max_number_of_midi_outputs()

Note

When using the Jack backend, this function should not return an empty string.

fn output_name<W: Write>(
    &self,
    buffer: &mut W,
    index: usize
) -> Result<(), Error>
[src]

The name of the midi output with the given index. You can assume that index is strictly smaller than Self::max_number_of_midi_outputs()

Note

When using the Jack backend, the name should not be an empty string.

Loading content...

Implementors

impl<T> CommonMidiPortMeta for T where
    T: Meta,
    T::MetaData: Port<MidiPort>,
    <<T as Meta>::MetaData as Port<MidiPort>>::PortData: Name
[src]

Loading content...