devela::_dep::midir::os::unix

Trait VirtualOutput

pub trait VirtualOutput: Sized {
    // Required method
    fn create_virtual(
        self,
        port_name: &str,
    ) -> Result<MidiOutputConnection, ConnectError<Self>> ;
}
Available on crate feature dep_midir only.
Expand description

Trait that is implemented by MidiOutput on platforms that support virtual ports (currently every platform but Windows).

Required Methods§

fn create_virtual( self, port_name: &str, ) -> Result<MidiOutputConnection, ConnectError<Self>>

Creates a virtual output port. Once it has been created, other applications can connect to this port and will receive MIDI messages that are sent to this port.

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.

Implementors§